From: Stefan Knoblich Date: Wed, 11 Feb 2009 16:04:30 +0000 (+0000) Subject: [ozmod_isdn] Backport fix from rework branch: use channel flag rather than CRVFlag... X-Git-Tag: v1.0.6~38^3~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2505bfd29f3921c8efaf5b1fb191efc15a78bf3b;p=thirdparty%2Ffreeswitch.git [ozmod_isdn] Backport fix from rework branch: use channel flag rather than CRVFlag to properly release channels in ZAP_CHANNEL_STATE_DOWN transition git-svn-id: http://svn.openzap.org/svn/openzap/trunk@662 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/freetdm/src/ozmod/ozmod_isdn/ozmod_isdn.c b/libs/freetdm/src/ozmod/ozmod_isdn/ozmod_isdn.c index 5f4c1ce4d6..24822f107a 100644 --- a/libs/freetdm/src/ozmod/ozmod_isdn/ozmod_isdn.c +++ b/libs/freetdm/src/ozmod/ozmod_isdn/ozmod_isdn.c @@ -1038,7 +1038,7 @@ static __inline__ void state_advance(zap_channel_t *zchan) case ZAP_CHANNEL_STATE_DOWN: { if (gen->CRV) { - if(gen->CRVFlag) { + if (zap_test_flag(zchan, ZAP_CHANNEL_OUTBOUND)) { isdn_data->channels_local_crv[gen->CRV] = NULL; } else { isdn_data->channels_remote_crv[gen->CRV] = NULL;