Update local_stream.conf.lua
Changes to the conditions that build the name to make sure it builds it correctly.
This commit is contained in:
+3
-2
@@ -23,13 +23,14 @@
|
|||||||
end
|
end
|
||||||
x = 0;
|
x = 0;
|
||||||
dbh:query(sql, function(row)
|
dbh:query(sql, function(row)
|
||||||
|
|
||||||
--combine the name, domain_name and the rate
|
--combine the name, domain_name and the rate
|
||||||
name = '';
|
name = '';
|
||||||
if (row.domain_uuid ~= nil) then
|
if (row.domain_uuid ~= nil and string.len(row.domain_uuid) > 0) then
|
||||||
name = row.domain_name..'/';
|
name = row.domain_name..'/';
|
||||||
end
|
end
|
||||||
name = name .. row.music_on_hold_name;
|
name = name .. row.music_on_hold_name;
|
||||||
if (row.music_on_hold_rate ~= nil or row.music_on_hold_rate == '') then
|
if (row.music_on_hold_rate ~= nil and #row.music_on_hold_rate > 0) then
|
||||||
name = name .. '/' .. row.music_on_hold_rate;
|
name = name .. '/' .. row.music_on_hold_rate;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user