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)