Add fix to prevent crash during reload if there is an outstanding MWI registration...
authorDoug Bailey <dbailey@digium.com>
Fri, 21 Nov 2008 15:53:49 +0000 (15:53 +0000)
committerDoug Bailey <dbailey@digium.com>
Fri, 21 Nov 2008 15:53:49 +0000 (15:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@158315 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 103c295..f295add 100644 (file)
@@ -4985,6 +4985,10 @@ static void __sip_destroy(struct sip_pvt *p, int lockowner, int lockdialoglist)
                p->registry = registry_unref(p->registry, "delete p->registry");
        }
        
+       if (p->mwi) {
+               p->mwi->call = NULL;
+       }
+
        if (dumphistory)
                sip_dump_history(p);