[asterisk-users] Codec negotiation : expecting G726, getting G711a (alaw)

Jonas Kellens jonas.kellens at telenet.be
Tue Aug 3 08:15:33 CDT 2010

Hello Philipp,

thank you for your answer.

On 08/03/2010 01:21 PM, Philipp von Klitzing wrote:
>> Question 3 :
>> How can I get g726 as first preferred codec ??
> Which Asterisk version are you using?

Using Asterisk 1.4.30

> * check if you have disallow/allow settings in the [general] section of
> sip.conf. Depending on your Asterisk version only the order in [general]
> would be respected, but not the order in the individual sip peer/user
> definition

In the [general] section of sip.conf I have :


> * look at the variable SIP_CODEC for the inbound (first) call leg, and in
> Asterisk 1.8 (or 1.6.2?) also at SIP_CODEC_OUTBOUND

When I read the value of this variable just before the Dial()-statement, 
it is empty.


More information about the asterisk-users mailing list