[Home]

Summary:ASTERISK-04763: sip.conf Codec Order Not Recognized
Reporter:shanondink (shanondink)Labels:
Date Opened:2005-08-03 01:41:35Date Closed:2011-06-07 14:10:42
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/CodecHandling
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:
If you have this in sip.conf for a certain peer:

disallow=all
allow=g726,ulaw

"sip show peer mp108" on the console shows this:

 Codecs       : 0x14 (ulaw|g726)
 Codec Order  : (g726|ulaw)

But the INVITE generated by Asterisk shows this in the SDP:

a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000

When it should show:

a=rtpmap:2 G726-32/8000
a=rtpmap:0 PCMU/8000

Becuase G726 is the first codec.

Thanks in advance.
Shanon

Comments:By: shanondink (shanondink) 2005-08-03 01:46:02


Mantis ID = 4886

By: Paul Belanger (pabelanger) 2005-08-03 15:26:38

What happens if you try:

disallow=all
allow=g726
allow=ulaw

By: Mark Spencer (markster) 2005-08-03 15:49:30

Asterisk's current behavior is to always prefer the incoming codec for preference whenever there is an inbound codec which is present in the outbound list.