]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[ozmod_isdn] Backport fix from rework branch: use channel flag rather than CRVFlag...
authorStefan Knoblich <stkn@freeswitch.org>
Wed, 11 Feb 2009 16:04:30 +0000 (16:04 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Wed, 11 Feb 2009 16:04:30 +0000 (16:04 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@662 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/ozmod/ozmod_isdn/ozmod_isdn.c

index 5f4c1ce4d62856758772a491dd5c286ff36cf6bf..24822f107aa59fe3c3e2d2e80271e45c4cb929bd 100644 (file)
@@ -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;