]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 21 Jun 2007 03:31:07 +0000 (03:31 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 21 Jun 2007 03:31:07 +0000 (03:31 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@281 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/zap_analog.c

index db0584cde87486e083c4c5a9c8beec82380b1375..063fe6a5fae3ba6946bf5308eda4f1ae7ce8b63b 100644 (file)
@@ -280,7 +280,7 @@ static void *zap_analog_channel_run(zap_thread_t *me, void *obj)
                                {
                                                
                                        if (state_counter > 500) {
-                                               if (zap_test_flag(zchan, ZAP_CHANNEL_OFFHOOK) && zchan->state >= ZAP_CHANNEL_STATE_IDLE) {
+                                               if (zap_test_flag(zchan, ZAP_CHANNEL_OFFHOOK) && zchan->last_state >= ZAP_CHANNEL_STATE_IDLE) {
                                                        zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_BUSY);
                                                } else {
                                                        zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_DOWN);