Add sip_req_user as another alternative destination.
This commit is contained in:
parent
568d561c0c
commit
2f19cf2ff4
|
|
@ -116,6 +116,11 @@
|
||||||
destination_number = api:execute("url_decode", sip_to_user);
|
destination_number = api:execute("url_decode", sip_to_user);
|
||||||
end
|
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
|
--set the dialplan cache key
|
||||||
local dialplan_cache_key = "dialplan:" .. call_context;
|
local dialplan_cache_key = "dialplan:" .. call_context;
|
||||||
if (context_name == 'public' and dialplan_mode == "single") then
|
if (context_name == 'public' and dialplan_mode == "single") then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue