[Asterisk-cvs] asterisk/channels chan_sip.c,1.182,1.183

markster at lists.digium.com markster at lists.digium.com
Mon Sep 29 23:56:10 CDT 2003


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

Modified Files:
	chan_sip.c 
Log Message:
Destroy channels on BYE when no owner is present


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.182
retrieving revision 1.183
diff -u -d -r1.182 -r1.183
--- chan_sip.c	27 Sep 2003 02:30:03 -0000	1.182
+++ chan_sip.c	30 Sep 2003 04:57:20 -0000	1.183
@@ -5043,6 +5043,8 @@
 			}
 		} else if (p->owner)
 			ast_queue_hangup(p->owner, 0);
+		else
+			p->needdestroy = 1;
 		transmit_response(p, "200 OK", req);
 	} else if (!strcasecmp(cmd, "MESSAGE")) {
 		if (sipdebug)




More information about the svn-commits mailing list