Open main menu

OpenVZ Virtuozzo Containers Wiki β

Editing Asterisk G729

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
=Installing the Asterisk/Digium g729 codec license=
+
The open source phone software Asterisk has a unique problem when you are trying to set it up instide a VE. If you buy licenses for the G729 codec and run the registration program it will fail. That's because the registration process requires that it has access to the MAC address on eth0 in order to work. But there is a way around it. You can make eth0 appear in the VE as follows:
 
 
The open source phone software Asterisk has a unique problem when you are trying to set it up inside a VE. If you buy licenses for the G729 codec from [http://www.digium.com Digium] and run the registration program it will fail. That's because the registration process requires that it has access to the MAC address on eth0 in order to work. But there is a way around it. You can make the eth0 device appear within the VE as follows:
 
  
 
  vzctl set $VEID --netif_add eth0 --save
 
  vzctl set $VEID --netif_add eth0 --save
Line 11: Line 9:
 
Initially the values of eth0 (XX) match the hardware card and the values of veth101.0 (YY) is random. The important point is that the XX values is the MAC number that Digium will see when you register your codecs. And this has the advantage of being portable from machine to machine.
 
Initially the values of eth0 (XX) match the hardware card and the values of veth101.0 (YY) is random. The important point is that the XX values is the MAC number that Digium will see when you register your codecs. And this has the advantage of being portable from machine to machine.
  
You can check your virtual device from within the VE as follows:
+
You can check your virtual device as follows:
  
 
  ifconfig -a
 
  ifconfig -a
 
eth0      Link encap:Ethernet  HWaddr FF:12:34:56:78:90
 
          BROADCAST MULTICAST  MTU:1500  Metric:1
 
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 
          collisions:0 txqueuelen:0
 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 
  
 
When you see the eth0 device in your VE and are happy with the MAC number then you can go ahead and register your codecs and it will actually work.
 
When you see the eth0 device in your VE and are happy with the MAC number then you can go ahead and register your codecs and it will actually work.
 
[[Category: HOWTO]]
 

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)