Fixed a bug with IVR Menu where it reached the max failures +1 before moving onto the timeout action.

This commit is contained in:
Mark Crane 2013-07-25 18:25:52 +00:00
parent 306c92557c
commit 4eff7e163b
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@
freeswitch.consoleLog("notice", "[ivr_menu] dtmf_digits: " .. dtmf_digits .. "\n");
menu_options(session, dtmf_digits);
else
if (tries <= tonumber(ivr_menu_max_failures)) then
if (tries < tonumber(ivr_menu_max_failures)) then
--log the dtmf digits
if (debug["tries"]) then
freeswitch.consoleLog("notice", "[ivr_menu] tries: " .. tries .. "\n");