]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
Fix handling of send_silence_when_idle==0 in switch_ivr_sleep
authorTravis Cross <tc@traviscross.com>
Mon, 3 Mar 2014 23:21:58 +0000 (23:21 +0000)
committerTravis Cross <tc@traviscross.com>
Mon, 3 Mar 2014 23:21:58 +0000 (23:21 +0000)
commit11ca1a2b2ebe0ab1c19fd766077a6ade0b724adf
treea93253c05b09bae6586dc6ca1d30edc46c18a0d8
parent3dd36873b5ac160b94f2b3bf752964e545ea79e9
Fix handling of send_silence_when_idle==0 in switch_ivr_sleep

When the channel variable send_silence_when_idle was set to zero,
switch_ivr_sleep was calling SWITCH_IVR_VERIFY_SILENCE_DIVISOR on it
anyway, causing it to be set to 400.  The only way to get the behavior
of not sending silence when idle was to unset the variable completely.

This corrects the behavior such that setting the value to zero has the
same effect as leaving it unset.
src/switch_ivr.c