[Asterisk-cvs] asterisk/channels chan_sip.c,1.669,1.670

markster at lists.digium.com markster at lists.digium.com
Wed Mar 2 10:05:34 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6514/channels

Modified Files:
	chan_sip.c 
Log Message:
Be sure to process SDP if we already have an owner (bug #3701)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.669
retrieving revision 1.670
diff -u -d -r1.669 -r1.670
--- chan_sip.c	26 Feb 2005 16:29:15 -0000	1.669
+++ chan_sip.c	2 Mar 2005 16:02:54 -0000	1.670
@@ -8001,6 +8001,16 @@
 			p->pendinginvite = seqno;
 			copy_request(&p->initreq, req);
 			check_via(p, req);
+			if (p->owner) {
+				/* Handle SDP here if we already have an owner */
+				if (!ast_strlen_zero(get_header(req, "Content-Type"))) {
+					if (process_sdp(p, req))
+						return -1;
+				} else {
+					p->jointcapability = p->capability;
+					ast_log(LOG_DEBUG, "Hm....  No sdp for the moment\n");
+				}
+			}
 		} else if (debug)
 			ast_verbose("Ignoring this request\n");
 		if (!p->lastinvite && !ignore && !p->owner) {




More information about the svn-commits mailing list