mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Make it possible to use # and * in the IVR Menu.
This commit is contained in:
@@ -147,10 +147,10 @@
|
||||
min_digits = 1;
|
||||
if (tries == 1) then
|
||||
freeswitch.consoleLog("notice", "[ivr_menu] greet long: " .. ivr_menu_greet_long .. "\n");
|
||||
dtmf_digits = session:playAndGetDigits(min_digits, ivr_menu_digit_len, 1, ivr_menu_timeout, ivr_menu_confirm_key, ivr_menu_greet_long, "", "\\d+");
|
||||
dtmf_digits = session:playAndGetDigits(min_digits, ivr_menu_digit_len, 1, ivr_menu_timeout, ivr_menu_confirm_key, ivr_menu_greet_long, "", ".*");
|
||||
else
|
||||
freeswitch.consoleLog("notice", "[ivr_menu] greet long: " .. ivr_menu_greet_short .. "\n");
|
||||
dtmf_digits = session:playAndGetDigits(min_digits, ivr_menu_digit_len, ivr_menu_max_timeouts, ivr_menu_timeout, ivr_menu_confirm_key, ivr_menu_greet_short, "", "\\d+");
|
||||
dtmf_digits = session:playAndGetDigits(min_digits, ivr_menu_digit_len, ivr_menu_max_timeouts, ivr_menu_timeout, ivr_menu_confirm_key, ivr_menu_greet_short, "", ".*");
|
||||
end
|
||||
if (string.len(dtmf_digits) > 0) then
|
||||
freeswitch.consoleLog("notice", "[ivr_menu] dtmf_digits: " .. dtmf_digits .. "\n");
|
||||
@@ -168,8 +168,6 @@
|
||||
end
|
||||
|
||||
function menu_options(session, digits)
|
||||
--remove the pound sign
|
||||
digits = digits:gsub("#", "");
|
||||
|
||||
--log the dtmf digits
|
||||
if (debug["dtmf"]) then
|
||||
|
||||
Reference in New Issue
Block a user