[asterisk-dev] [Code Review]: Improve SDP parsing warning messages and RFC compliance

Kevin Fleming reviewboard at asterisk.org
Thu May 24 16:16:30 CDT 2012



> On March 28, 2012, 12:44 p.m., opticron wrote:
> > /branches/1.8/channels/chan_sip.c, lines 9080-9083
> > <https://reviewboard.asterisk.org/r/1811/diff/2/?file=26754#file26754line9080>
> >
> >     Is this now supported properly (and the message just never got removed)?

No, it got moved up into the media-type specific sections, so the warning message generated can be more specific (like all the others are).


> On March 28, 2012, 12:44 p.m., opticron wrote:
> > /branches/1.8/channels/chan_sip.c, line 9165
> > <https://reviewboard.asterisk.org/r/1811/diff/2/?file=26754#file26754line9165>
> >
> >     This can happen if a 'c' line occurs in the non-stream specific area of the SDP since then *sa will be set.  This should probably be left the way it was.

Reverted.


- Kevin


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


On May 24, 2012, 4:15 p.m., Kevin Fleming wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1811/
> -----------------------------------------------------------
> 
> (Updated May 24, 2012, 4:15 p.m.)
> 
> 
> Review request for Asterisk Developers and opticron.
> 
> 
> Summary
> -------
> 
> This patch improves the warning messages generated during SDP parsing when various problems are found:
> 
> * 'Unsupported media type' is only reported when that is in fact the case, not when a supported media type is included in an 'm' line that has an invalid format.
> 
> * All warning messages related to parsing 'm' lines now include the 'm' line contents.
> 
> * (minor bugfix) newline added to port-number-zero warning messages.
> 
> * Warning messages improved to use RFC-specified terminology for various items.
> 
> * Warnings for offers that include more than port for a single media type now include the media type.
> 
> * Nearly all SDP errors will result in a '488 Not Acceptable Here' response, rather than an attempt to use some part of the offer/answer presented in the SDP.
> 
> This patch does *not* correct Asterisk's behavior when a media stream offer with a port number of 0 (zero) is received; that will have to be done in another patch.
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/channels/chan_sip.c 367677 
> 
> Diff: https://reviewboard.asterisk.org/r/1811/diff
> 
> 
> Testing
> -------
> 
> Compile testing only.
> 
> 
> Thanks,
> 
> Kevin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120524/539a8f70/attachment-0001.htm>


More information about the asterisk-dev mailing list