mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add invalid entry announcement to the ivr_menu.lua.
This commit is contained in:
@@ -130,8 +130,7 @@
|
|||||||
ivr_menu_greet_short = sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/"..ivr_menu_greet_short;
|
ivr_menu_greet_short = sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/"..ivr_menu_greet_short;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--ivr_menu_invalid_entry = sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/ivr/ivr-that_was_an_invalid_entry.wav";
|
ivr_menu_invalid_entry = sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/ivr/ivr-that_was_an_invalid_entry.wav";
|
||||||
--session:streamFile(ivr_menu_invalid_entry);
|
|
||||||
|
|
||||||
--prepare the api object
|
--prepare the api object
|
||||||
api = freeswitch.API();
|
api = freeswitch.API();
|
||||||
@@ -223,6 +222,17 @@
|
|||||||
action = "";
|
action = "";
|
||||||
data = "";
|
data = "";
|
||||||
end); --end results
|
end); --end results
|
||||||
|
|
||||||
|
--execute
|
||||||
|
if (action) then
|
||||||
|
if (string.len(action) == 0) then
|
||||||
|
session:streamFile(ivr_menu_invalid_entry);
|
||||||
|
menu();
|
||||||
|
end
|
||||||
|
else
|
||||||
|
session:streamFile(ivr_menu_invalid_entry);
|
||||||
|
menu();
|
||||||
|
end
|
||||||
end --end function
|
end --end function
|
||||||
|
|
||||||
--answer the session
|
--answer the session
|
||||||
|
|||||||
Reference in New Issue
Block a user