Add sip_req_user as another alternative destination.

This commit is contained in:
FusionPBX 2022-09-26 14:46:52 -06:00 committed by GitHub
parent 568d561c0c
commit 2f19cf2ff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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