mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Merge pull request #1171 from rdissauer/fix/suppress-debug-messages
Fix. suppress debug messages
This commit is contained in:
@@ -32,9 +32,9 @@
|
||||
sql = [[SELECT extension, number_alias from v_extensions
|
||||
WHERE domain_uuid = ']] .. domain_uuid ..[['
|
||||
AND (mwi_account = ']]..voicemail_id..[[' or mwi_account = ']]..voicemail_id..[[@]]..domain_name..[[')]];
|
||||
--if (debug["sql"]) then
|
||||
if (debug["sql"]) then
|
||||
freeswitch.consoleLog("notice", "[voicemail] SQL: " .. sql .. "\n");
|
||||
--end
|
||||
end
|
||||
status = dbh:query(sql, function(row)
|
||||
if (string.len(row["number_alias"]) > 0) then
|
||||
table.insert(accounts, row["number_alias"]);
|
||||
@@ -74,4 +74,4 @@
|
||||
event:addHeader("MWI-Voice-Message", message_count.."/0 ("..message_count.."/0)");
|
||||
event:fire();
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user