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
This commit is contained in:
Anthony Minessale 2008-01-10 16:50:38 +00:00
parent 12fa624e80
commit cb4a1605af
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}