Fix. Log output in retry.lua
This commit is contained in:
parent
3f6b772420
commit
b806a92cd1
|
|
@ -98,8 +98,8 @@
|
||||||
tostring(accountcode) ,
|
tostring(accountcode) ,
|
||||||
tostring(origination_caller_id_name) ,
|
tostring(origination_caller_id_name) ,
|
||||||
tostring(origination_caller_id_number) ,
|
tostring(origination_caller_id_number) ,
|
||||||
tostring(mailfrom_address) ,
|
tostring(from_address) ,
|
||||||
tostring(mailto_address) ,
|
tostring(email_address) ,
|
||||||
tostring(hangup_cause_q850) ,
|
tostring(hangup_cause_q850) ,
|
||||||
fax_options
|
fax_options
|
||||||
)
|
)
|
||||||
|
|
@ -240,8 +240,9 @@
|
||||||
"values(" .. table.concat(values, ",") .. ")"
|
"values(" .. table.concat(values, ",") .. ")"
|
||||||
|
|
||||||
if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
freeswitch.consoleLog("notice", "[FAX] retry: "..sql.."\n");
|
log.noticef("SQL: %s", sql);
|
||||||
end
|
end
|
||||||
|
|
||||||
dbh:query(sql);
|
dbh:query(sql);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -298,7 +299,7 @@
|
||||||
|
|
||||||
sql = table.concat(sql, "\n");
|
sql = table.concat(sql, "\n");
|
||||||
if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
freeswitch.consoleLog("notice", "[FAX] SQL: " .. sql .. "\n");
|
log.noticef("SQL: %s", sql);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -317,7 +318,7 @@
|
||||||
|
|
||||||
if fax_success == "1" then
|
if fax_success == "1" then
|
||||||
--Success
|
--Success
|
||||||
log.info("RETRY STATS SUCCESS: GATEWAY[%s] VARS[%s]", fax_options, fax_trial);
|
log.infof("RETRY STATS SUCCESS: GATEWAY[%s]", fax_options);
|
||||||
|
|
||||||
if keep_local == "false" then
|
if keep_local == "false" then
|
||||||
os.remove(fax_file);
|
os.remove(fax_file);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue