[asterisk-commits] oej: trunk r47455 - in /trunk: ./ channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 10 12:01:13 MST 2006


Author: oej
Date: Fri Nov 10 13:01:12 2006
New Revision: 47455

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47455
Log:
Issue 8336- fix support for multipart SDP (imported from 1.2/1.4). (Alphaque)

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Propchange: trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Nov 10 13:01:12 2006
@@ -22,3 +22,4 @@
 menuselect-tree
 autom4te.cache
 makeopts.embed_rules
+aclocal.m4

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=47455&r1=47454&r2=47455
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Nov 10 13:01:12 2006
@@ -4660,7 +4660,9 @@
 	for (x = 0; x < (req->lines - 2); x++) {
 		if (!strncasecmp(req->line[x], boundary, strlen(boundary)) &&
 		    !strcasecmp(req->line[x + 1], "Content-Type: application/sdp")) {
-			req->sdp_start = x + 2;
+			x += 2;
+			req->sdp_start = x;
+
 			/* search for the end of the body part */
 			for ( ; x < req->lines; x++) {
 				if (!strncasecmp(req->line[x], boundary, strlen(boundary)))



More information about the asterisk-commits mailing list