Update directory.lua
This commit is contained in:
@@ -383,7 +383,10 @@
|
|||||||
if (local_hostname == database_hostname) then
|
if (local_hostname == database_hostname) then
|
||||||
freeswitch.consoleLog("notice", "[xml_handler-directory.lua] local_host and database_host are the same\n");
|
freeswitch.consoleLog("notice", "[xml_handler-directory.lua] local_host and database_host are the same\n");
|
||||||
else
|
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;
|
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");
|
--freeswitch.consoleLog("notice", "[xml_handler-directory.lua] dial_string " .. dial_string .. "\n");
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user