From: Jeff Peeler Date: Thu, 12 Jun 2008 17:39:38 +0000 (+0000) Subject: Make sure we hangup any calls we have and NULL out the ss7call value when we get... X-Git-Tag: 1.6.2.0-beta1~2011 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8b2bd88171f476bb6390564fb055b2c4c090dfe;p=thirdparty%2Fasterisk.git Make sure we hangup any calls we have and NULL out the ss7call value when we get a reset circuit message. Fixes crash bug. (from mattf r121857, moving from chan_zap to chan_dahdi) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@122243 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index d0d5fba511..cbd1bf2015 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -9425,6 +9425,10 @@ static void *ss7_linkset(void *data) p->remotelyblocked = 0; dpc = p->dpc; isup_set_call_dpc(e->rsc.call, dpc); + if (p->ss7call) + p->ss7call = NULL; + if (p->owner) + p->owner->_softhangup |= AST_SOFTHANGUP_DEV; ast_mutex_unlock(&p->lock); isup_rlc(ss7, e->rsc.call); break;