From: Martin Pycko Date: Tue, 15 Jul 2003 05:05:19 +0000 (+0000) Subject: Fix a segfault with the calls that need to register with the remote gateway (eg:... X-Git-Tag: 0.5.0~306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09a80571a579a4c7fc4da4ad9cf48e2b708e3746;p=thirdparty%2Fasterisk.git 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 --- 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)