mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-03 18:33:49 +00:00
Update directory.lua
This commit is contained in:
@@ -383,7 +383,10 @@
|
||||
if (local_hostname == database_hostname) then
|
||||
freeswitch.consoleLog("notice", "[xml_handler-directory.lua] local_host and database_host are the same\n");
|
||||
else
|
||||
local profile, proxy = "internal", database_hostname;
|
||||
contact = trim(api:execute("sofia_contact", destination));
|
||||
array = explode('/',contact);
|
||||
sip_profile = array[2];
|
||||
local profile, proxy = sip_profile, database_hostname;
|
||||
dial_string = "{sip_invite_domain=" .. domain_name .. ",presence_id=" .. presence_id .."}sofia/" .. profile .. "/" .. destination .. ";fs_path=sip:" .. proxy;
|
||||
--freeswitch.consoleLog("notice", "[xml_handler-directory.lua] dial_string " .. dial_string .. "\n");
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user