[asterisk-commits] mattf: trunk r121857 - /trunk/channels/chan_zap.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 11 12:50:17 CDT 2008
Author: mattf
Date: Wed Jun 11 12:50:17 2008
New Revision: 121857
URL: http://svn.digium.com/view/asterisk?view=rev&rev=121857
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
Modified:
trunk/channels/chan_zap.c
Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=121857&r1=121856&r2=121857
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Wed Jun 11 12:50:17 2008
@@ -9456,11 +9456,18 @@
}
p = linkset->pvts[chanpos];
ast_mutex_lock(&p->lock);
+
p->inservice = 1;
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;
case ISUP_EVENT_GRS:
More information about the asterisk-commits
mailing list