[svn-commits] branch 1.2 r28384 - /branches/1.2/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu May 18 13:43:42 MST 2006


Author: kpfleming
Date: Thu May 18 15:43:42 2006
New Revision: 28384

URL: http://svn.digium.com/view/asterisk?rev=28384&view=rev
Log:
fix up a few more places to find the SDP properly (fallout from fix for #7124)

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=28384&r1=28383&r2=28384&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Thu May 18 15:43:42 2006
@@ -10045,7 +10045,7 @@
 			} else if ((resp >= 100) && (resp < 200)) {
 				if (sipmethod == SIP_INVITE) {
 					sip_cancel_destroy(p);
-					if (!ast_strlen_zero(get_header(req, "Content-Type")))
+					if (find_sdp(req))
 						process_sdp(p, req);
 					if (p->owner) {
 						/* Queue a progress frame */
@@ -10425,7 +10425,7 @@
 			return 0;
 		}
 		/* Process the SDP portion */
-		if (!ast_strlen_zero(get_header(req, "Content-Type"))) {
+		if (find_sdp(req)) {
 			if (process_sdp(p, req)) {
 				transmit_response(p, "488 Not acceptable here", req);
 				ast_set_flag(p, SIP_NEEDDESTROY);	
@@ -11162,7 +11162,7 @@
 		if (seqno == p->pendinginvite) {
 			p->pendinginvite = 0;
 			__sip_ack(p, seqno, FLAG_RESPONSE, 0);
-			if (!ast_strlen_zero(get_header(req, "Content-Type"))) {
+			if (find_sdp(req)) {
 				if (process_sdp(p, req))
 					return -1;
 			} 



More information about the svn-commits mailing list