dect
/
asterisk
Archived
13
0
Fork 0

When deleting expiry, put -1 if temponly

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3987 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-10-12 22:29:58 +00:00
parent 82cf33f648
commit d05b3f24b3
1 changed files with 2 additions and 0 deletions

View File

@ -4407,6 +4407,8 @@ static int parse_contact(struct sip_pvt *pvt, struct sip_peer *p, struct sip_req
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);