OpenVZ Forum


Home » General » Support » Asterisk G.729 codec...
Asterisk G.729 codec... [message #14034] Tue, 12 June 2007 13:27 Go to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
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?


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page

[Updated on: Wed, 12 September 2007 14:11]

Report message to a moderator

Re: Asterisk G.729 codec... [message #14036 is a reply to message #14034] Tue, 12 June 2007 15:49 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

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

[Updated on: Tue, 12 June 2007 15:50]

Report message to a moderator

Re: Asterisk G.729 codec... [message #14038 is a reply to message #14036] Tue, 12 June 2007 16:35 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Will it replace my venet?

Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: Asterisk G.729 codec... [message #14046 is a reply to message #14038] Wed, 13 June 2007 09:33 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

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.

Re: Asterisk G.729 codec... [message #14050 is a reply to message #14046] Wed, 13 June 2007 11:21 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
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



Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: Asterisk G.729 codec... [message #14078 is a reply to message #14050] Thu, 14 June 2007 10:04 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Read this http://wiki.openvz.org/Veth#Making_a_veth-device_persistent

HTH,
Vasily.
Re: Asterisk G.729 codec... [message #14109 is a reply to message #14078] Thu, 14 June 2007 19:51 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Do I have to disable my venet inferface in the VE and only use veth?

Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: Asterisk G.729 codec... [message #14116 is a reply to message #14109] Fri, 15 June 2007 06:21 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
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.
Re: Asterisk G.729 codec... [message #20130 is a reply to message #14116] Wed, 12 September 2007 12:09 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
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...


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page

[Updated on: Wed, 12 September 2007 12:10]

Report message to a moderator

Re: Asterisk G.729 codec... [message #21356 is a reply to message #14034] Fri, 05 October 2007 16:39 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
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


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: Asterisk G.729 codec... [message #21808 is a reply to message #21356] Tue, 16 October 2007 12:59 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
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


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page

[Updated on: Tue, 16 October 2007 13:11]

Report message to a moderator

Re: Asterisk G.729 codec... [message #21809 is a reply to message #21808] Tue, 16 October 2007 13:08 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Success! Thanks to finist and digium for their help and patience!

Regards,

Ugo


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: Asterisk G.729 codec... [message #48581 is a reply to message #21808] Tue, 23 October 2012 23:30 Go to previous messageGo to next message
bobot23 is currently offline  bobot23
Messages: 1
Registered: October 2012
Location: Sydney
Junior Member
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
Re: Asterisk G.729 codec... [message #48604 is a reply to message #48581] Wed, 24 October 2012 17:40 Go to previous message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
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.

Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Previous Topic: vzctl exec command
Next Topic: 100% CPU usage
Goto Forum:
  


Current Time: Mon Nov 04 00:29:54 GMT 2024

Total time taken to generate the page: 0.03539 seconds