[asterisk-dev] Changing Order of Preferences of Codecs in sip.conf

Chan Kwang Mien kwangmien at asgent-tech.com
Tue Aug 8 18:24:39 MST 2006


Hi,

The "allow" keyword in sip.conf shows the order of preferences for codecs.
Does anyone know how to change the order of preference of codecs in 
sip.conf on the fly ?

The current way of "Order of Preference of Codecs" would lead to this 
problem :
If Caller supports both g.729 and g.711 but its Callees either supports 
g.729 or g.711, the Caller could
only connect to one of its Callees using the same "allow" settings in 
sip.conf.

I am thinking of solving this problem by first determining the Callee's 
codec when Asterisk receives a call from the
Caller. The codecs of the Callees could be stored in a Database.

If the Callee supports only g.711, then the preferred codec for the Caller 
should be should be set to g.711 in sip.conf,
otherwise it should be set to g.729. However, this method requires that the 
sip.conf be reloaded whenever there
are any changes made to sip.conf.

Does anyone have comments on this ?

Thank you.

regards,
Kwang Mien




More information about the asterisk-dev mailing list