His Nishith, First of all, you need to have the g729 codec installed on your asterisk. This codec is usually not free, but if you google it, you may find some hacks. Second, you have to configure the peers pointing to your phone and long distance provider to allow only the codecs you want for each one. Also, you have to make sure Asterisk will not reinvite the 2 peers to talk directly to each other. For example you will have something like:
[phone_peer] ... canreinvite=no disallow=all allow=ulaw ... [ld_peer] ... canreinvite=no disallow=all allow=g729 ... Liviu On 3/14/07, Nishith Patel <[EMAIL PROTECTED]> wrote:
HI there, I am facing too much problem of sound quality in asterisk while calling through internet. Let's come to the main problem I am facing is codec problem. I would like to configure my extensions.conf in such a way that when I dial and any long distance number it should use both codec in respective to network. I mean to say it should use G711 ulaw from Phone ( End Point ) to Asterisk server and when that call goes out from that internal network to out side world ( Internet ) it should use G729 codec. SO in that case I can get the advantage of G711 ulaw and G729 as well. Because G711 ulaw has excellent so sound quality as compare to G729 which is good in compression . So in that case I can save my bandwidth and at the same time I can get good sound quality. So please help me out in configuring asterisk in such a manner. Thanking you, Nishith
