[Asterisk-cvs] asterisk/channels chan_sip.c,1.628,1.629

markster at lists.digium.com markster at lists.digium.com
Wed Jan 12 09:19:04 CST 2005


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

Modified Files:
	chan_sip.c 
Log Message:
Destroy sip channel when message is  sent outside the context of a call...


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.628
retrieving revision 1.629
diff -u -d -r1.628 -r1.629
--- chan_sip.c	11 Jan 2005 18:54:22 -0000	1.628
+++ chan_sip.c	12 Jan 2005 15:23:06 -0000	1.629
@@ -7918,6 +7918,8 @@
 			receive_message(p, req);
 		}
 		transmit_response(p, "200 OK", req);
+		if (!p->lastinvite)
+			ast_set_flag(p, SIP_NEEDDESTROY);
 	} else if (!strcasecmp(cmd, "SUBSCRIBE")) {
 		if (!ignore) {
 			/* Use this as the basis */




More information about the svn-commits mailing list