Update directory.lua
This commit is contained in:
parent
dc54439760
commit
3a05c0bce7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue