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

Pavel Jezek pavel.jezek at i.cz
Tue Aug 8 23:51:05 MST 2006


I think this sould be solved better using this patch
0004825: [patch][post 1.4] New codec negotiation algorithm
http://bugs.digium.com/view.php?id=4825

I hope, that will be included to trunk soon after 1.4 release,
or you can try to use this oej's test trunk:
http://svn.digium.com/view/asterisk/team/oej/codecnegotiation/
PJ




Chan Kwang Mien wrote:
> 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
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>



More information about the asterisk-dev mailing list