OpenVZ Forum - RDF feed
type: channel
items: Asterisk G.729 codec...
items: Re: Asterisk G.729 codec...

Asterisk G.729 codec...
type: item
description: Hi, I tried to install a G729 codec from Digium on my asterisk server that runs in a VE. It doesn't work because it needs a mac address to attach to. Here is a suggestion from Digium: I have asked around, and we have a possible solution that may work. I believe the g729 codec only requires a nic with the name eth0. Can you possibly try to take a virtual ethernet device on your openvz machine and alias it to eth0? Is that possible?
creator: ugob
date: 2007-06-12T13:27:02-00:00

Re: Asterisk G.729 codec...
type: item
description: Hi, you can use a veth(ernet) device in your *-VE. A veth(ernet) devices has a MAC address. Add a veth(ernet) to VE: # vzctl set <VEID> --netif_add eth0[,<mac>,<host_ifname>,<host_mac] [--save] See more at: http://wiki.openvz.org/Differences_between_venet_and_veth http://wiki.openvz.org/Virtual_Ethernet_device man-pages of vzctl
creator: curx
date: 2007-06-12T15:49:51-00:00

Re: Asterisk G.729 codec...
type: item
description: Will it replace my venet?
creator: ugob
date: 2007-06-12T16:35:55-00:00

Re: Asterisk G.729 codec...
type: item
description: Hi Ugo, > Will it replace my venet? No, venet and (enabled) vethernet devices are both available in VE, but only the venet network config is setup. You must enter the network settings for a veth-dev manually.
creator: curx
date: 2007-06-13T09:33:27-00:00

Re: Asterisk G.729 codec...
type: item
description: Ok In the links you posted, we're told to do a ifconfig eth0 0 on the VE and ifconfig veth101.0 0 on the HW node. How do I configure it so that it does the equivalent at the startup of this VE? Regards, Ugo
creator: ugob
date: 2007-06-13T11:21:02-00:00

Re: Asterisk G.729 codec...
type: item
description: Read this http://wiki.openvz.org/Veth#Making_a_veth-device_persistent HTH, Vasily.
creator: Vasily Tarasov
date: 2007-06-14T10:04:51-00:00

Re: Asterisk G.729 codec...
type: item
description: Do I have to disable my venet inferface in the VE and only use veth?
creator: ugob
date: 2007-06-14T19:51:44-00:00

Re: Asterisk G.729 codec...
type: item
description: Just do not assign any IP addresses using "vzctl set <veid> --ipadd <ip address>" to the VE in question. In this way, you _will_ still have venet0 device inside VE, but it _will_ _not_ operate. HTH, Vasily.
creator: Vasily Tarasov
date: 2007-06-15T06:21:16-00:00

Re: Asterisk G.729 codec...
type: item
description: Would it be possible to do the opposite? Use the venet as is and have a veth that is doing nothing but providing a MAC address to meet the licensing requirement for the codec? Honestly, I find it terribly hard to configure a veth, and I can't spend much time trying to fiddle with that, it is a telephony server...
creator: ugob
date: 2007-09-12T12:09:26-00:00

Re: Asterisk G.729 codec...
type: item
description: Could anyone help me out? I've tried my best and I'd really like to be able to use the codecs in a VE. Thanks, Ugo
creator: ugob
date: 2007-10-05T16:39:08-00:00

Re: Asterisk G.729 codec...
type: item
description: Looks like all I needed to get a dummy veth device is vzctl set $VEID --netif_add eth0 --save Using this, I have a veth0 device with a MAC address, but it it not used and only shows with the '-a' option of ifconfig. This way, I can keep my venet and its simplicity, and still have a MAC address to register my codec. I'll try to register my G.729 Codec now. Thanks, Ugo
creator: ugob
date: 2007-10-16T12:59:52-00:00

Re: Asterisk G.729 codec...
type: item
description: Success! Thanks to finist and digium for their help and patience! Regards, Ugo
creator: ugob
date: 2007-10-16T13:08:54-00:00

Re: Asterisk G.729 codec...
type: item
description: Hi, I did the same thing but I am getting the error below.. I am new in OpenVZ.. any help would be appreciated. Bad CT ID --netif_add Regards Alvin
creator: bobot23
date: 2012-10-23T23:30:55-00:00

Re: Asterisk G.729 codec...
type: item
description: What is the exact command line that you used? Don't forget that you must substitute $VEID for the ID of the container you want to configure.
creator: ugob
date: 2012-10-24T17:40:35-00:00