[asterisk-commits] file: branch 1.4 r67068 - /branches/1.4/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jun 4 12:31:09 MST 2007


Author: file
Date: Mon Jun  4 14:31:09 2007
New Revision: 67068

URL: http://svn.digium.com/view/asterisk?view=rev&rev=67068
Log:
Better handle SIP devices that say they have SDP content... but really don't. (issue #9398 reported by mthomasslo)

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=67068&r1=67067&r2=67068
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Mon Jun  4 14:31:09 2007
@@ -4703,7 +4703,7 @@
 	if (!strcasecmp(content_type, "application/sdp")) {
 		req->sdp_start = 0;
 		req->sdp_end = req->lines;
-		return 1;
+		return req->lines ? 1 : 0;
 	}
 
 	/* if it's not multipart/mixed, there cannot be an SDP */



More information about the asterisk-commits mailing list