G729 Problems

sircolin

Renowned Member
Nov 12, 2009
78
0
71
UK
Hi Everyone.

Not sure if this belongs on this forum openvz or pbiaf really.

Im currently running centos-5.0-pbxiaflash_1.4.0-3 on proxmox i have shorewall 4 installed - (setup as per http://www.montanalinux.org/proxmox-ve-with-shorewall.html)

ETH0= 212.117.XXX.65 - 255.255.255.0 -212.117.XXX.1
VMBRO= 10.1.1.1 255.255.255.0 -

my pbx normally runs on 212.117.XXX.66 with a gateway of 212.117.XXX.1

I am currently trying to get G729 working i purchased licenses and im using
Code:
http://wiki.openvz.org/Virtual_Ethernet_device#Virtual_Ethernet_device_usage
for reference.

Then i ran
Code:
[host-node]# vzctl start 101
Code:
[host-node]# vzctl set  101 --netif_add eth0 --save
I thought this would create a venet interface with just a mac address but when i do ifconfig -a i get
Code:
eth0      Link encap:Ethernet  HWaddr 00:18:51:0B:BB:49  
          inet addr:10.1.1.9  Bcast:10.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::218:51ff:fe0b:bb49/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3131 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3031 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:330158 (322.4 KiB)  TX bytes:865158 (844.8  KiB)
which will allow me to connect to the net but all inbound traffic is not getting to 212.117.XXX.66 it seems the be using 10.1.1.9 as it's default gateway which i guess goes out on the host ip of 212.117.XXX.65.
Im guessing the return traffic is using the same, and lack of a firewall rules from the host ip to 10.1.1.9 means my phones don't connect

Moving on I registered the codec and then checked it from the pbxiaf

Code:
Licenses Found:
File: G729-8MNS7SMB98CG.lic -- Key: XXXXXXXXXX -- Host-ID:  f2:89:0d:71:af:ec:d9:36:36:d7:4a:e3:fb:ac:e2:7b:0f:49:95:75 -- Channels:  2 (Expires: 2030-06-02) (OK)
So im pretty stuck at this point do need to remove venet and use veth from now on (i guess it would free up an external ip address) of course forwarding required ports, or is there another way.
By switching to veth in pbxiaf will that cause me any problems?

Thanks for reading.

Also posted on the pbxiaf forum as some parts of this post are pbxiaf related.