Clear out old call
authorMark Spencer <markster@digium.com>
Wed, 9 Apr 2003 19:55:59 +0000 (19:55 +0000)
committerMark Spencer <markster@digium.com>
Wed, 9 Apr 2003 19:55:59 +0000 (19:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@800 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 84911f2..6366d5d 100755 (executable)
@@ -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)