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 f453ddb19f
commit bece0abd28

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");