Fix domain_uuid for directory.lua.

This commit is contained in:
Mark Crane
2013-04-10 07:52:17 +00:00
parent dd14687991
commit 94adaa61a6
+4 -1
View File
@@ -55,8 +55,9 @@
--give time for the call to be ready --give time for the call to be ready
session:streamFile("silence_stream://1000"); session:streamFile("silence_stream://1000");
--get the domain name --get the domain info
domain_name = session:getVariable("domain_name"); domain_name = session:getVariable("domain_name");
domain_uuid = session:getVariable("domain_uuid");
--set the sounds path for the language, dialect and voice --set the sounds path for the language, dialect and voice
default_language = session:getVariable("default_language"); default_language = session:getVariable("default_language");
@@ -110,6 +111,7 @@
end end
--get the domain_uuid --get the domain_uuid
if (domain_uuid == nil) then
if (domain_name ~= nil) then if (domain_name ~= nil) then
sql = "SELECT domain_uuid FROM v_domains "; sql = "SELECT domain_uuid FROM v_domains ";
sql = sql .. "WHERE domain_name = '" .. domain_name .."' "; sql = sql .. "WHERE domain_name = '" .. domain_name .."' ";
@@ -120,6 +122,7 @@
domain_uuid = string.lower(rows["domain_uuid"]); domain_uuid = string.lower(rows["domain_uuid"]);
end); end);
end end
end
--define explode --define explode
function explode ( seperator, str ) function explode ( seperator, str )