Add IVR Option to Call Block (#6059)

* add ivr option to call block
This commit is contained in:
hershyheilpern
2021-10-14 02:27:59 -04:00
committed by GitHub
parent 08bf6ad86f
commit 23f95137f4
4 changed files with 78 additions and 2 deletions

View File

@@ -196,6 +196,15 @@
freeswitch.consoleLog("notice", "[call_block] caller id number " .. caller_id_number .. " action: extension ".. call_block_data.."\n");
end
end
if (call_block_app == 'ivr') then
if (session:ready()) then
session:execute('set', 'call_block_uuid='..call_block_uuid);
session:execute('set', 'call_block_app='..call_block_app);
session:execute('set', 'call_block_data='..call_block_data);
session:execute("transfer", call_block_data..' XML '.. context);
freeswitch.consoleLog("notice", "[call_block] caller id number " .. caller_id_number .. " action: extension ".. call_block_data.."\n");
end
end
if (call_block_app == 'voicemail') then
if (session:ready()) then
session:execute('set', 'call_block_uuid='..call_block_uuid);