From 111d35e5a9e35e0e6358492bc8a50b26fb48a9bb Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 21 Jun 2007 03:31:07 +0000 Subject: [PATCH] update git-svn-id: http://svn.openzap.org/svn/openzap/trunk@281 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/src/zap_analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/freetdm/src/zap_analog.c b/libs/freetdm/src/zap_analog.c index db0584cde8..063fe6a5fa 100644 --- a/libs/freetdm/src/zap_analog.c +++ b/libs/freetdm/src/zap_analog.c @@ -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);