[Asterisk-cvs] asterisk/channels chan_sip.c,1.533,1.534

markster at lists.digium.com markster at lists.digium.com
Tue Oct 12 18:29:26 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
When deleting expiry, put -1 if temponly


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.533
retrieving revision 1.534
diff -u -d -r1.533 -r1.534
--- chan_sip.c	12 Oct 2004 22:02:19 -0000	1.533
+++ chan_sip.c	12 Oct 2004 22:29:58 -0000	1.534
@@ -4407,6 +4407,8 @@
 		expiry = max_expiry;
 	if (!p->temponly)
 		p->expire = ast_sched_add(sched, (expiry + 10) * 1000, expire_register, p);
+	else
+		p->expire = -1;
 	pvt->expiry = expiry;
 	snprintf(data, sizeof(data), "%s:%d:%d:%s:%s", ast_inet_ntoa(iabuf, sizeof(iabuf), p->addr.sin_addr), ntohs(p->addr.sin_port), expiry, p->username, p->fullcontact);
 	ast_db_put("SIP/Registry", p->name, data);




More information about the svn-commits mailing list