Summary: | ASTERISK-25633: chan_sip: Codec preference misorder | ||
Reporter: | Yury Tsaregorodtsev (aero.108) | Labels: | |
Date Opened: | 2015-12-16 17:19:07.000-0600 | Date Closed: | 2015-12-20 17:56:15.000-0600 |
Priority: | Critical | Regression? | |
Status: | Closed/Complete | Components: | Channels/chan_sip/CodecHandling |
Versions: | 11.20.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Ubuntu 15.10 | Attachments: | |
Description: | Asterisk misorder incoming leg codec preference.
Incoming SDP: m=audio 24636 RTP/AVP 8 0 18 4 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:4 G723/8000 sip.conf disallow=all allow=g729,alaw,ulaw,gsm,g723 result: [2015-12-16 23:04:20.353] DEBUG[4442][C-00011a0e] chan_sip.c: *** Our native formats are (g729) [2015-12-16 23:04:20.353] DEBUG[4442][C-00011a0e] chan_sip.c: *** Joint capabilities are (g723|ulaw|alaw|g729) [2015-12-16 23:04:20.353] DEBUG[4442][C-00011a0e] chan_sip.c: *** Our capabilities are (g723|gsm|ulaw|alaw|g729) [2015-12-16 23:04:20.353] DEBUG[4442][C-00011a0e] chan_sip.c: *** AST_CODEC_CHOOSE formats are g729 Right codec suppose to be ALAW. | ||
Comments: | By: Asterisk Team (asteriskteam) 2015-12-16 17:19:09.145-0600 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Joshua C. Colp (jcolp) 2015-12-20 17:56:15.400-0600 Currently in chan_sip the codec preference order is enforced based on the configuration of the server. As a result given the configuration you've provided and the SDP the chosen codec would be g729, not alaw. You may want to bring your problem up on the asterisk-users mailing list and see if others have a solution which would work for you. |