mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Clear out old call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3833,12 +3833,14 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
|
||||
r=p->registry;
|
||||
if (r) {
|
||||
r->regstate=REG_STATE_REGISTERED;
|
||||
ast_log(LOG_NOTICE, "Registration successful\n");
|
||||
ast_log(LOG_DEBUG, "Registration successful\n");
|
||||
if (r->timeout > -1) {
|
||||
ast_log(LOG_DEBUG, "Cancelling timeout %d\n", r->timeout);
|
||||
ast_sched_del(sched, r->timeout);
|
||||
}
|
||||
r->timeout=-1;
|
||||
r->call = NULL;
|
||||
p->needdestroy = 1;
|
||||
/* set us up for re-registering */
|
||||
/* figure out how long we got registered for */
|
||||
if (r->expire > -1)
|
||||
|
Reference in New Issue
Block a user