[asterisk-commits] jpeeler: trunk r122243 - /trunk/channels/chan_dahdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 12 12:39:38 CDT 2008
Author: jpeeler
Date: Thu Jun 12 12:39:38 2008
New Revision: 122243
URL: http://svn.digium.com/view/asterisk?view=rev&rev=122243
Log:
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)
Modified:
trunk/channels/chan_dahdi.c
Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=122243&r1=122242&r2=122243
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Thu Jun 12 12:39:38 2008
@@ -9425,6 +9425,10 @@
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;
More information about the asterisk-commits
mailing list