[Asterisk-cvs] asterisk/channels chan_sip.c,1.510.2.53,1.510.2.54
russell at lists.digium.com
russell at lists.digium.com
Wed Mar 2 11:41:09 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6996/channels
Modified Files:
Tag: v1-0
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.510.2.53
retrieving revision 1.510.2.54
diff -u -d -r1.510.2.53 -r1.510.2.54
--- chan_sip.c 28 Feb 2005 00:30:35 -0000 1.510.2.53
+++ chan_sip.c 2 Mar 2005 17:38:27 -0000 1.510.2.54
@@ -7268,6 +7268,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