[asterisk-dev] [Code Review] 3788: media formats: Fix crash in chan_sip's sip_new when offered only non-audio media streams

Joshua Colp reviewboard at asterisk.org
Tue Jul 15 07:14:11 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3788/#review12648
-----------------------------------------------------------

Ship it!


Ship It!

- Joshua Colp


On July 15, 2014, 2:52 a.m., Matt Jordan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3788/
> -----------------------------------------------------------
> 
> (Updated July 15, 2014, 2:52 a.m.)
> 
> 
> 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/9290ea05/attachment.html>


More information about the asterisk-dev mailing list