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:
parent
12fa624e80
commit
cb4a1605af
|
@ -260,7 +260,7 @@ static void *zap_analog_channel_run(zap_thread_t *me, void *obj)
|
||||||
break;
|
break;
|
||||||
case ZAP_CHANNEL_STATE_DIALTONE:
|
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);
|
zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_BUSY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue