[Asterisk-Users] codec order in SIP doesn't work

Roy Sigurd Karlsbakk roy at karlsbakk.net
Thu Dec 16 06:58:46 MST 2004


> Seems this is only partially. This is from latest CVS -r v1-0
>
> If specifying a peer/friend in sip.conf without any codec prefs, I get 
> this
>
>   Username     : 1000012
>   Codecs       : 0x11a (gsm|alaw|g726|g729)
>   Codec Order  : (g726|g729|gsm|alaw)
>
> but if not specifying it in sip.conf, and rather using sipfriends from 
> mysql
>
>   Username     : 1000012
>   Codecs       : 0x11a (gsm|alaw|g726|g729)
>   Codec Order  : (none)
>
> so there's something missing here, it seems

More testing follows:

http://pastebin.ca/raw/3036 shows a SIP DEBUG when a client (supporting 
G.726, alaw and ulaw) connects to server supporting the following (from 
sip.conf)

disallow=all
allow=gsm,g726,g729,alaw

for connections from some x-pro phones, running GSM codec, SIP SHOW 
PEERS shows correct codec. however, for those like the SIP DEBUG pasted 
above, the SIP SHOW PEERS shows ALAW.

Please, someone, help me out here.....

roy




More information about the asterisk-users mailing list