[Home]

Summary:ASTERISK-27275: PJSip uses wrong codec
Reporter:Niklas Larsson (pnlarsson)Labels:
Date Opened:2017-09-15 08:46:15Date Closed:2017-09-15 08:53:53
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_pjsip_sdp_rtp
Versions:13.17.0 Frequency of
Occurrence
Constant
Related
Issues:
is related toASTERISK-26745 Asymmetric codecs when asymmetric_rtp_codec=no
Environment:Attachments:( 0) console.txt
( 1) pjsip.conf
Description:When codec are different we can get asymeteric codec:
UA1 invites to asterisk: ulaw, alaw
Asterisk 200 OK: alaw,ulaw
Asterisk sends alaw and UA ulaw

And we get one-way audio
Comments:By: Asterisk Team (asteriskteam) 2017-09-15 08:46:17.103-0500

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) 2017-09-15 08:53:53.197-0500

Asterisk is responding with alaw and then ulaw as that is how you have configured the codec preference order for that endpoint.

As for the one-way audio problem this was uncovered during work on ASTERISK-26745 and the fix has already been merged in. Things will now switch as they should, and the fix will be in the next release.