I am not sure how to do what you asked and where to do it but here is what I do know how to do
1) Dialplan entry attached
2) Log viewer when I tried to dial *32
3) Copy/paste app/blacklist/index.lua
--------app/blacklist/index.lua---------------------------
--debug
--debug["info"] = true;
debug["sql"] = true;
--connect to the database
Database = require "resources.functions.database";
dbh = Database.new('system');
--include json library (as global object)
if (debug["sql"]) then
json = require "resources.functions.lunajson"
end
--set the api
api = freeswitch.API();
--if the session exists
if (session:ready()) then
--get session variables
sip_from_user = session:getVariable("sip_from_user");
sip_number_alias = session:getVariable("sip_number_alias");
domain_name = session:getVariable("domain_name");
caller_id_number = session:getVariable("lastnumcalled");
--set the sounds path for the language, dialect and voice
default_language = session:getVariable("default_language");
default_dialect = session:getVariable("default_dialect");
default_voice = session:getVariable("default_voice");
if (not default_language) then default_language = 'en'; end
if (not default_dialect) then default_dialect = 'us'; end
if (not default_voice) then default_voice = 'callie'; end
blocked_greeting = sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.. "/" .. "ivr/8000/ivr-enabled.wav";
error_greeting = sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.. "/" .. "ivr/8000/ivr-that_was_an_invalid_entry.wav";
--get the domain_uuid
domain_uuid = session:getVariable("domain_uuid");
if (domain_count > 1) then
if (domain_uuid == nil) then
--get the domain_uuid using the domain name required for multi-tenant
if (domain_name ~= nil) then
local sql = "SELECT domain_uuid FROM v_domains ";
sql = sql .. "WHERE domain_name = :domain_name ";
local params = {domain_name = domain_name};
if (debug["sql"]) then
freeswitch.consoleLog("notice", "[blacklist] SQL: " .. sql .. "; params:" .. json.encode(params) .. "\n");
end
dbh:query(sql, params, function(rows)
domain_uuid = rows["domain_uuid"];
end);
end
end
end
if (domain_uuid ~= nil) then
domain_uuid = string.lower(domain_uuid);
end
--get the last call from extension
if tonumber(sip_from_user) == nil then
sip_from_user = sip_number_alias;
end
-- Log the number found
freeswitch.consoleLog("notice", "[blacklist] Last call to " .. sip_from_user .. " was found to be: " .. caller_id_number .. "\n");
if ( caller_id_number == nil) then
-- Let user know number was blocked successfully
if ( file_exists(error_greeting) ) then
session:execute("playback", error_greeting)
session:hangup();
end
else
--caller_id_name = string.gsub(caller_id_name,"'","''");
local sql = {}
table.insert(sql, "INSERT INTO v_call_block ");
table.insert(sql, "(");
table.insert(sql, "domain_uuid, ");
table.insert(sql, "call_block_uuid, ");
table.insert(sql, "call_block_name, ");
table.insert(sql, "call_block_number, ");
table.insert(sql, "call_block_count, ");
table.insert(sql, "call_block_action, ");
table.insert(sql, "call_block_enabled, ");
table.insert(sql, "date_added ");
table.insert(sql, ") ");
table.insert(sql, "VALUES ");
table.insert(sql, "(");
table.insert(sql, ":domain_uuid, ");
table.insert(sql, ":call_block_uuid, ");
table.insert(sql, ":call_block_name, ");
table.insert(sql, ":call_block_number, ");
table.insert(sql, "0, ");
table.insert(sql, "'Reject', ");
table.insert(sql, "'true', ");
table.insert(sql, ":date_added ");
table.insert(sql, ") ");
sql = table.concat(sql, "\n");
local params = {
domain_uuid = domain_uuid;
call_block_uuid = api:execute("create_uuid");
call_block_name = caller_id_number;
call_block_number = caller_id_number;
date_added = api:getTime();
};
if (debug["sql"]) then
freeswitch.consoleLog("notice", "[blacklist] SQL: " .. sql .. "; params:" .. json.encode(params) .. "\n");
end
dbh:query(sql, params);
-- Let user know number was blocked successfully
if ( file_exists(blocked_greeting) ) then
session:execute("playback", blocked_greeting)
session:hangup();
end
end
end
--close the database connection
dbh:release();
---------------------------------------------------------------------------------------------
LOG VIEWER WHEN I TRIED TO CALL *32
---------------------------------------------------------------------------------------------
1 NE
2 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 EXECUTE [depth=0] sofia/internal/
2008@fpbx2.npusa.us:5060 set(record_append=true)
3 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 2019-07-24 22:17:37.278036 [DEBUG] mod_dptools.c:1615 SET sofia/internal/
2008@fpbx2.npusa.us:5060 [record_append]=[true]
4 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Action set(record_in_progress=true) INLINE
5 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 EXECUTE [depth=0] sofia/internal/
2008@fpbx2.npusa.us:5060 set(record_in_progress=true)
6 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 2019-07-24 22:17:37.278036 [DEBUG] mod_dptools.c:1615 SET sofia/internal/
2008@fpbx2.npusa.us:5060 [record_in_progress]=[true]
7 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Action set(${uuid_record ${uuid} start ${record_path}/${record_name}})
8 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->redial] continue=true
9 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [redial] destination_number(*32) =~ /^(redial|\*870)$/ break=on-true
10 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (PASS) [redial] () =~ // break=never
11 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Action hash(insert/${domain_name}-last_dial/${caller_id_number}/${destination_number})
12 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->speed_dial] continue=false
13 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [speed_dial] destination_number(*32) =~ /^\*0(.*)$/ break=on-false
14 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->default_caller_id] continue=true
15 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [default_caller_id] ${emergency_caller_id_number}(16785631010) =~ /^$/ break=never
16 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [default_caller_id] ${outbound_caller_id_number}(16785631010) =~ /^$/ break=never
17 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->skyetel] continue=false
18 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (PASS) [skyetel] ${user_exists}(false) =~ /false/ break=on-false
19 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [skyetel] destination_number(*32) =~ /(^911$|^933$)/ break=on-false
20 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->ring group] continue=
21 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [ring group] destination_number(*32) =~ /^6002$/ break=on-false
22 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->ring group] continue=
23 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [ring group] destination_number(*32) =~ /^6001$/ break=on-false
24 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->TollFree.800] continue=false
25 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (PASS) [TollFree.800] ${user_exists}(false) =~ /false/ break=on-false
26 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [TollFree.800] destination_number(*32) =~ /^1?(8(00|33|44|55|66|77|88)[2-9]\d{6})$/ break=on-false
27 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->VI-OUT-PRIMARY.1d10] continue=false
28 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (PASS) [VI-OUT-PRIMARY.1d10] ${user_exists}(false) =~ /false/ break=on-false
29 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [VI-OUT-PRIMARY.1d10] destination_number(*32) =~ /^\+?1?(\d{10})$/ break=on-false
30 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->agent_status] continue=false
31 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [agent_status] destination_number(*32) =~ /^\*22$/ break=never
32 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [agent_status] destination_number(*32) =~ /^(agent\+)(.*)$/ break=on-false
33 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->agent_status_id] continue=false
34 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [agent_status_id] destination_number(*32) =~ /^\*23$/ break=on-false
35 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->group-intercept] continue=false
36 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [group-intercept] destination_number(*32) =~ /^\*8$/ break=on-false
37 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->page] continue=false
38 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [page] destination_number(*32) =~ /^\*724$/ break=on-false
39 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->page-extension] continue=false
40 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [page-extension] destination_number(*32) =~ /^\*8(\d{2,7})$/ break=on-false
41 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->eavesdrop] continue=false
42 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [eavesdrop] destination_number(*32) =~ /^\*33(\d{2,7})$/ break=on-false
43 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->call_privacy] continue=false
44 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [call_privacy] destination_number(*32) =~ /^\*67(\d+)$/ break=on-false
45 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->call_return] continue=false
46 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [call_return] destination_number(*32) =~ /^\*69$/ break=on-false
47 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->intercept-ext] continue=false
48 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [intercept-ext] destination_number(*32) =~ /^\*\*(\d+)$/ break=on-true
49 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [intercept-ext] destination_number(*32) =~ /^\*\*$/ break=on-false
50 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->extension_queue] continue=false
51 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [extension_queue] destination_number(*32) =~ /^\*800(.*)$/ break=on-false
52 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->intercept-ext-polycom] continue=false
53 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [intercept-ext-polycom] destination_number(*32) =~ /^\*97(\d+)$/ break=on-false
54 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->dx] continue=false
55 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [dx] destination_number(*32) =~ /^dx$/ break=on-false
56 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->dx] continue=false
57 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [dx] destination_number(*32) =~ /^dx$/ break=on-false
58 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->att_xfer] continue=false
59 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [att_xfer] destination_number(*32) =~ /^att_xfer$/ break=on-false
60 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->extension-to-voicemail] continue=false
61 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [extension-to-voicemail] ${user_exists}(false) =~ /^true$/ break=on-false
62 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->send_to_voicemail] continue=false
63 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [send_to_voicemail] destination_number(*32) =~ /^\*99(\d{2,10})$/ break=on-false
64 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->vmain] continue=false
65 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [vmain] destination_number(*32) =~ /^vmain$|^\*4000$|^\*98$/ break=never
66 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [vmain] destination_number(*32) =~ /^(vmain$|^\*4000$|^\*98)(\d{2,12})$/ break=on-false
67 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->xfer_vm] continue=false
68 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [xfer_vm] destination_number(*32) =~ /^xfer_vm$/ break=on-false
69 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->is_transfer] continue=false
70 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [is_transfer] destination_number(*32) =~ /^is_transfer$/ break=on-false
71 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->vmain_user] continue=false
72 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [vmain_user] destination_number(*32) =~ /^\*97$/ break=on-false
73 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->cf] continue=false
74 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [cf] destination_number(*32) =~ /^cf$/ break=on-false
75 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->delay_echo] continue=false
76 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [delay_echo] destination_number(*32) =~ /^\*9195$/ break=on-false
77 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->echo] continue=false
78 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [echo] destination_number(*32) =~ /^\*9196$/ break=on-false
79 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->milliwatt] continue=false
80 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [milliwatt] destination_number(*32) =~ /^\*9197$/ break=on-false
81 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->is_zrtp_secure] continue=true
82 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [is_zrtp_secure] ${zrtp_secure_media_confirmed}() =~ /^true$/ break=on-false
83 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 ANTI-Action eval(not_secure)
84 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->tone_stream] continue=false
85 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [tone_stream] destination_number(*32) =~ /^\*9198$/ break=on-false
86 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->is_secure] continue=true
87 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [is_secure] ${sip_via_protocol}(tcp) =~ /tls/ break=on-false
88 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->hold_music] continue=false
89 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [hold_music] destination_number(*32) =~ /^\*9664$/ break=on-false
90 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->recordings] continue=false
91 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [recordings] destination_number(*32) =~ /^\*(732)$/ break=on-false
92 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->directory] continue=false
93 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [directory] destination_number(*32) =~ /^\*411$/ break=on-false
94 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->wake-up] continue=false
95 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [wake-up] destination_number(*32) =~ /^\*(925)$/ break=on-false
96 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->valet_park] continue=false
97 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [valet_park] destination_number(*32) =~ /^(park\+)?\*(59[0-9][0-9])$/ break=never
98 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [valet_park] ${sip_h_Referred-By}() =~ /sip
.*)@.*/ break=never
99 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [valet_park] destination_number(*32) =~ /^(park\+)?\*(59[0-9][0-9])$/ break=never
100 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [valet_park] destination_number(*32) =~ /^(park\+)?\*(59[0-9][0-9])$/ break=on-false
101 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->valet_park_in] continue=false
102 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [valet_park_in] destination_number(*32) =~ /^(park\+)?(\*5900)$/ break=on-false
103 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->valet_park_out] continue=false
104 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [valet_park_out] destination_number(*32) =~ /^(park\+)?\*(59[0-9][0-9])$/ break=on-false
105 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->operator] continue=false
106 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [operator] destination_number(*32) =~ /^0$|^operator$/ break=on-false
107 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->operator-forward] continue=false
108 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [operator-forward] destination_number(*32) =~ /^\*000$/ break=on-false
109 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->do-not-disturb] continue=false
110 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [do-not-disturb] destination_number(*32) =~ /^\*77$/ break=on-true
111 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [do-not-disturb] destination_number(*32) =~ /^\*78$|\*363$/ break=on-true
112 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [do-not-disturb] destination_number(*32) =~ /^\*79$/ break=on-true
113 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [do-not-disturb] destination_number(*32) =~ /^dnd\+2008$/ break=on-true
114 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->call_screen] continue=true
115 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [call_screen] ${call_screen_enabled}(false) =~ /^true$/ break=on-false
116 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->call-forward] continue=false
117 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [call-forward] destination_number(*32) =~ /^\*72(\d*)$/ break=on-true
118 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [call-forward] destination_number(*32) =~ /^\*73$/ break=on-true
119 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [call-forward] destination_number(*32) =~ /^\*74$/ break=on-true
120 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [call-forward] destination_number(*32) =~ /^forward\+(\Q2008\E)(?:\/(\d+))?$/ break=on-true
121 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->call forward all] continue=false
122 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [call forward all] ${user_exists}(false) =~ /true/ break=on-false
123 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->call forward not registered] continue=false
124 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [call forward not registered] ${user_exists}(false) =~ /true/ break=on-false
125 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->follow-me] continue=false
126 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [follow-me] destination_number(*32) =~ /^\*21$/ break=on-false
127 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->talking clock date and time] continue=true
128 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [talking clock date and time] destination_number(*32) =~ /^\*9172$/ break=on-false
129 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->clear_sip_auto_answer] continue=true
130 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [clear_sip_auto_answer] ${click_to_call}() =~ /true/ break=on-false
131 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->talking clock time] continue=true
132 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [talking clock time] destination_number(*32) =~ /^\*9170$/ break=on-false
133 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->talking clock date] continue=true
134 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [talking clock date] destination_number(*32) =~ /^\*9171$/ break=on-false
135 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->local_extension] continue=true
136 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [local_extension] ${user_exists}(false) =~ /true/ break=on-false
137 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->voicemail] continue=false
138 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (FAIL) [voicemail] ${user_exists}(false) =~ /true/ break=on-false
139 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 parsing [fpbx2.npusa.us->blacklist] continue=false
140 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Regex (PASS) [blacklist] destination_number(*32) =~ /^\*32$/ break=on-false
141 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Action set(lastnumcalled=${hash(select/${domain_name}-call_return/${caller_id_number})})
142 8802afcb-d1c8-4c2e-9fc6-fdfadf2bd763 Dialplan: sofia/internal/
2008@fpbx2.npusa.us:5060 Action lua(app.lua.blacklist)