[Asterisk-Dev] SIP - how does * decide codec order of preference

Kevin Walsh kevin at cursor.biz
Tue Sep 28 08:58:34 MST 2004


Rob Gagnon [rob at networkip.net] wrote:
> They are sent out based on which Codec bits are on or off.
> 
> Each codec is assigned one bit of a 32-bit integer.  That integer is
> parsed in order to produce the list in the SIP message.  Of course, doing
> it that way leaves no method for setting the order.
> 
> This is a constant topic in the list.  Maybe someone would want to recode
> that to use an ordered list?  :-)
> 
See sip_codec_choose() and ast_best_codec() in "channels/chan_sip.c".

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/




More information about the asterisk-dev mailing list