From cb4a1605afcf970329d6152b11e908281df7d5d9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 10 Jan 2008 16:50:38 +0000 Subject: [PATCH] don't timeout dialtone for mid-call dialtone to support hold better git-svn-id: http://svn.openzap.org/svn/openzap/trunk@363 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/zap_analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/openzap/src/zap_analog.c b/libs/openzap/src/zap_analog.c index ccbea0b32b..c560eade9c 100644 --- a/libs/openzap/src/zap_analog.c +++ b/libs/openzap/src/zap_analog.c @@ -260,7 +260,7 @@ static void *zap_analog_channel_run(zap_thread_t *me, void *obj) break; case ZAP_CHANNEL_STATE_DIALTONE: { - if (state_counter > 10000) { + if (!zap_test_flag(zchan, ZAP_CHANNEL_HOLD) && state_counter > 10000) { zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_BUSY); } }