Additional work on ivr_menu.lua
This commit is contained in:
parent
4a9041ba1d
commit
a8e52e0adc
|
|
@ -200,16 +200,25 @@
|
||||||
data = data:gsub("$1", result);
|
data = data:gsub("$1", result);
|
||||||
data = data:gsub("${domain_name}", domain_name);
|
data = data:gsub("${domain_name}", domain_name);
|
||||||
|
|
||||||
--send to the log
|
|
||||||
if (debug["action"]) then
|
|
||||||
freeswitch.consoleLog("notice", "[ivr_menu] action: " .. action .. " data: ".. data .. "\n");
|
|
||||||
end
|
|
||||||
end --if regex
|
end --if regex
|
||||||
|
|
||||||
--execute
|
|
||||||
session:execute(action, data);
|
|
||||||
end --if menu-exex-app
|
end --if menu-exex-app
|
||||||
end --if regex match
|
end --if regex match
|
||||||
|
|
||||||
|
--execute
|
||||||
|
if (action) then
|
||||||
|
if (string.len(action) > 0) then
|
||||||
|
--send to the log
|
||||||
|
if (debug["action"]) then
|
||||||
|
freeswitch.consoleLog("notice", "[ivr_menu] action: " .. action .. " data: ".. data .. "\n");
|
||||||
|
end
|
||||||
|
--run the action
|
||||||
|
session:execute(action, data);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
--clear the variables
|
||||||
|
action = "";
|
||||||
|
data = "";
|
||||||
end); --end results
|
end); --end results
|
||||||
end --end function
|
end --end function
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue