Fix a segfault with the calls that need to register with the remote gateway (eg:...
authorMartin Pycko <martinp@digium.com>
Tue, 15 Jul 2003 05:05:19 +0000 (05:05 +0000)
committerMartin Pycko <martinp@digium.com>
Tue, 15 Jul 2003 05:05:19 +0000 (05:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1190 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7d108e2..5636204 100755 (executable)
@@ -844,6 +844,9 @@ static void __sip_destroy(struct sip_pvt *p, int lockowner)
                free_old_route(p->route);
                p->route = NULL;
        }
+       if (p->registry) {
+               p->registry->call=NULL;
+       }
        /* Unlink us from the owner if we have one */
        if (p->owner) {
                if (lockowner)