aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-xchannels/chan_sip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 84911f274..6366d5d3a 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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)