[asterisk-users] pjsip: asterisk can't decide which codec to use

Joshua Colp jcolp at digium.com
Fri Jun 16 10:40:09 CDT 2017


On Fri, Jun 16, 2017, at 12:29 PM, Michael Maier wrote:
> I just tested your fix 2 times w/ using the scenario mentioned in the
> bug report. It has been working for me. No more flipping.
> 
> Asterisks indeed commits more than one codec in ok sdp, but always uses
> the first one afterwards. Hopefully the peer always handles it the same
> way. I would have thought that the ok sdp contains just one codec (the
> best).

There's actually a feature for just that in master,
preferred_codec_only. It'll be available in 15. The new behavior in the
branches with multiple codecs in the answer mirrors that of chan_sip, so
it's pretty safe.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list