From 09a80571a579a4c7fc4da4ad9cf48e2b708e3746 Mon Sep 17 00:00:00 2001 From: Martin Pycko Date: Tue, 15 Jul 2003 05:05:19 +0000 Subject: [PATCH] Fix a segfault with the calls that need to register with the remote gateway (eg: when asterisk has to send REGISTER message in order to place a call) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1190 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7d108e2bb7..5636204787 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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)