summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-01-14 21:10:16 +0000
committerMark Spencer <markster@digium.com>2005-01-14 21:10:16 +0000
commit35191109443842f88a70d1f35f6ff39ced79b8c2 (patch)
tree0df59df141592b9f9023a3868ba0dfcb3a32ae71 /channels
parent8eab29c445a2768bf7c4a1bf06947e2299650b7b (diff)
Give us more wiggle room on incoming registrations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_iax2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index c899de2a8..5df6bb553 100755
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -4847,7 +4847,7 @@ static void reg_source_db(struct iax2_peer *p)
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 @@ static int update_registry(char *name, struct sockaddr_in *sin, int callno, char
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) {