Change the gateway name to gateway_uuid in the XML handler.
This commit is contained in:
parent
e6f87a8d51
commit
e7386519ce
|
|
@ -101,15 +101,7 @@
|
|||
end
|
||||
x = 0;
|
||||
dbh:query(sql, function(field)
|
||||
--set as variables
|
||||
gateway = field.gateway;
|
||||
gateway = gateway:gsub(" ", "_");
|
||||
|
||||
if (domain_count > 1) then
|
||||
table.insert(xml, [[ <gateway name="]] .. field.domain_name .."-".. gateway .. [[">]]);
|
||||
else
|
||||
table.insert(xml, [[ <gateway name="]] .. gateway .. [[">]]);
|
||||
end
|
||||
table.insert(xml, [[ <gateway name="]] .. field.gateway_uuid .. [[">]]);
|
||||
|
||||
if (string.len(field.username) > 0) then
|
||||
table.insert(xml, [[ <param name="username" value="]] .. field.username .. [["/>]]);
|
||||
|
|
@ -254,7 +246,7 @@
|
|||
|
||||
--send to the console
|
||||
if (debug["cache"]) then
|
||||
freeswitch.consoleLog("notice", "[xml_handler] configuration:sofia.conf source: database\n");
|
||||
freeswitch.consoleLog("notice", "[xml_handler] configuration:sofia.conf:" .. hostname .." source: database\n");
|
||||
end
|
||||
else
|
||||
--replace the ' back to a single quote
|
||||
|
|
|
|||
Loading…
Reference in New Issue