[asterisk-dev] [Code Review] Improve SDP parsing warning messages and RFC compliance
opticron
reviewboard at asterisk.org
Tue May 29 07:50:13 CDT 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1811/#review6335
-----------------------------------------------------------
Ship it!
Other than the red blobs you mentioned, I think this is good to go. Of course, this will change the behavior of chan_sip significantly when dealing with devices that don't generate completely Asterisk-compatible SDP.
- opticron
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/20120529/af0bc2f0/attachment.htm>
More information about the asterisk-dev
mailing list