[asterisk-dev] [Code Review] 3788: media formats: Fix crash in chan_sip's sip_new when offered only non-audio media streams
Matt Jordan
reviewboard at asterisk.org
Mon Jul 14 21:52:25 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3788/
-----------------------------------------------------------
Review request for Asterisk Developers, Corey Farrell, Joshua Colp, and opticron.
Repository: Asterisk
Description
-------
When offered only non-audio media streams, chan_sip will currently crash. This is due to its preferred codec logic attempting to grab the preferred audio format and not checking to see if it is NULL.
This patch keeps the audio logic (as it mirrors closely what occurs now), but falls back to getting the preferred format of any type if the audio lookup fails to find a format.
Diffs
-----
./team/group/media_formats-reviewed-trunk/channels/chan_sip.c 418614
Diff: https://reviewboard.asterisk.org/r/3788/diff/
Testing
-------
The SDP_offer_answer test in the testsuite stopped crashing.
Thanks,
Matt Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140715/c3609dc7/attachment.html>
More information about the asterisk-dev
mailing list