Page 1 of 1

codecs and their conversion in inbound calling

PostPosted: Wed Jun 03, 2009 10:10 am
by tech.php
Is there any possibility of conversion of incoming calls in G711a format into G729 format by asterisk.

The case is as below:
There seems some issue with my DID provider. They say we're using G729 codec. But the total bandwidth usage(incoming+outgoing) is almost 2.09 Mbps with only 71 active channels in asterisk console.
Is there any possibility that I'm missing something or have misconfigured my Vicidial installation?
I've disabled all other codecs than G729 in my sip.conf.

Please help.

Re: codecs and their conversion in inbound calling

PostPosted: Thu Jun 04, 2009 10:45 pm
by gzpxyj
tech.php wrote:Is there any possibility of conversion of incoming calls in G711a format into G729 format by asterisk.

The case is as below:
There seems some issue with my DID provider. They say we're using G729 codec. But the total bandwidth usage(incoming+outgoing) is almost 2.09 Mbps with only 71 active channels in asterisk console.
Is there any possibility that I'm missing something or have misconfigured my Vicidial installation?
I've disabled all other codecs than G729 in my sip.conf.

Please help.

If you look at asterisk log, you should see what codecs it uses. Or you can change your setting to g711a and see the bandwith. I know for sure that there are automatic conversions between codecs in asterisk. Forgot the command, but you should be able to see those conversion table by issuing a command at asterisk cli.

PostPosted: Fri Jun 05, 2009 2:02 am
by Op3r
show translation

PostPosted: Fri Jun 05, 2009 2:35 pm
by tech.php
gzpxyj wrote:
tech.php wrote:Is there any possibility of conversion of incoming calls in G711a format into G729 format by asterisk.

The case is as below:
There seems some issue with my DID provider. They say we're using G729 codec. But the total bandwidth usage(incoming+outgoing) is almost 2.09 Mbps with only 71 active channels in asterisk console.
Is there any possibility that I'm missing something or have misconfigured my Vicidial installation?
I've disabled all other codecs than G729 in my sip.conf.

Please help.

If you look at asterisk log, you should see what codecs it uses. Or you can change your setting to g711a and see the bandwith. I know for sure that there are automatic conversions between codecs in asterisk. Forgot the command, but you should be able to see those conversion table by issuing a command at asterisk cli.


@gzpxyj
That means if the DID provider is using g711a and I've allowed only g729 in my sip.conf, then my asterisk box will use transcoding between codecs to accept incoming calls?

PostPosted: Fri Jun 05, 2009 3:44 pm
by Op3r
if you only allowed g729 it wont connect

PostPosted: Fri Jun 05, 2009 9:13 pm
by tech.php
Hi Op3r,

Thanks for your prompt reply. :)

Op3r wrote:if you only allowed g729 it wont connect


If it will not connect, then why the bandwidth usage are so high?
I think total active channel is the number of channels displayed using 'show channels' command on asterisk console. If I am not wrong, then the bandwidth usage between my asterisk box and did provider's IP (I'm using iftop for that) should be much less than its current value.
Or I'm missing something else? :(

PostPosted: Sat Jun 06, 2009 5:41 am
by codehaxor
did you do a

disallow=all
allow=g729

on your inbound trunk?

Re: codecs and their conversion in inbound calling

PostPosted: Sat Jun 06, 2009 9:56 am
by gardo
The total bandwidth usage that you have is accurate. Here's the breakdown of your 71 active channels:

RTP: 4.69 Kbps
UDP: 3.13 Kbps
IP: 7.81 Kibps
G729a 8.00 Kbps

That's around 1.7mbps of bandwidth.

There are actually other factors to consider in computing your bandwitdh usage. Specifically the overhead part.

tech.php wrote:Is there any possibility of conversion of incoming calls in G711a format into G729 format by asterisk.

The case is as below:
There seems some issue with my DID provider. They say we're using G729 codec. But the total bandwidth usage(incoming+outgoing) is almost 2.09 Mbps with only 71 active channels in asterisk console.
Is there any possibility that I'm missing something or have misconfigured my Vicidial installation?
I've disabled all other codecs than G729 in my sip.conf.

Please help.

PostPosted: Mon Jun 08, 2009 5:58 pm
by williamconley
sip show channels

will show the format of each channel, authoritatively.