[Asterisk-cvs] asterisk/channels chan_iax2.c,1.236,1.237
markster at lists.digium.com
markster at lists.digium.com
Fri Jan 14 15:06:29 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv29919/channels
Modified Files:
chan_iax2.c
Log Message:
Give us more wiggle room on incoming registrations
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.236
retrieving revision 1.237
diff -u -d -r1.236 -r1.237
--- chan_iax2.c 12 Jan 2005 17:28:26 -0000 1.236
+++ chan_iax2.c 14 Jan 2005 21:10:16 -0000 1.237
@@ -4847,7 +4847,7 @@
p->addr.sin_port = htons(atoi(c));
if (p->expire > -1)
ast_sched_del(sched, p->expire);
- p->expire = ast_sched_add(sched, p->expirey * 1000, expire_registry, (void *)p);
+ p->expire = ast_sched_add(sched, (p->expirey + 10) * 1000, expire_registry, (void *)p);
if (iax2_regfunk)
iax2_regfunk(p->name, 1);
register_peer_exten(p, 1);
@@ -4908,7 +4908,7 @@
if (p->expire > -1)
ast_sched_del(sched, p->expire);
if (p->expirey && sin->sin_addr.s_addr)
- p->expire = ast_sched_add(sched, p->expirey * 1000, expire_registry, (void *)p);
+ p->expire = ast_sched_add(sched, (p->expirey + 10) * 1000, expire_registry, (void *)p);
iax_ie_append_str(&ied, IAX_IE_USERNAME, p->name);
iax_ie_append_int(&ied, IAX_IE_DATETIME, iax2_datetime(p->zonetag));
if (sin->sin_addr.s_addr) {
More information about the svn-commits
mailing list