]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Setting InUse channel flag in function "zap_channel_open_chan" of zap_io.c
authorHelmut Kuper <helmut.kuper@ewetel.de>
Tue, 24 Feb 2009 08:26:52 +0000 (08:26 +0000)
committerHelmut Kuper <helmut.kuper@ewetel.de>
Tue, 24 Feb 2009 08:26:52 +0000 (08:26 +0000)
Without this, inbound calls never were marked as InUse.

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@667 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/zap_io.c

index 4647fbef049ef42f7f763516de74db1fc7c755cf..8fd60a85e8a346b369cc60bef7b4bc71af66345e 100644 (file)
@@ -1029,7 +1029,7 @@ zap_status_t zap_channel_open_chan(zap_channel_t *zchan)
        if (zap_test_flag(zchan, ZAP_CHANNEL_READY)) {
                status = zchan->span->zio->open(zchan);
                if (status == ZAP_SUCCESS) {
-                       zap_set_flag(zchan, ZAP_CHANNEL_OPEN);
+                       zap_set_flag(zchan, ZAP_CHANNEL_OPEN+ZAP_CHANNEL_INUSE);
                }
        } else {
                snprintf(zchan->last_error, sizeof(zchan->last_error), "%s", "Channel is not ready");