aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-07-15 05:05:19 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-07-15 05:05:19 +0000
commit32efcd0acc56f6fe0cc1c4fe91047fd9a58530a6 (patch)
tree0375744c98101524b7f2a2ccaf3e3991cd74df3a
parent9c7dc69aec27bbb1a9adcf2f8fbba9c71a7df8da (diff)
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: http://svn.digium.com/svn/asterisk/trunk@1190 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7d108e2bb..563620478 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)