mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add sip_req_user as another alternative destination.
This commit is contained in:
@@ -116,6 +116,11 @@
|
||||
destination_number = api:execute("url_decode", sip_to_user);
|
||||
end
|
||||
|
||||
--use alternative sip_req_user instead of the default
|
||||
if (dialplan_destination == '${sip_req_user}' or dialplan_destination == 'sip_req_user') then
|
||||
destination_number = api:execute("url_decode", sip_req_user);
|
||||
end
|
||||
|
||||
--set the dialplan cache key
|
||||
local dialplan_cache_key = "dialplan:" .. call_context;
|
||||
if (context_name == 'public' and dialplan_mode == "single") then
|
||||
|
||||
Reference in New Issue
Block a user