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:
Mark Spencer
2003-04-09 19:55:59 +00:00
parent af6aeefada
commit 9d5e3ee8b9

View File

@@ -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)