Update hangup_rx.lua
This commit is contained in:
parent
a1976b2aec
commit
644bcd5c4c
|
|
@ -22,9 +22,6 @@
|
|||
-- Contributor(s):
|
||||
-- Mark J. Crane
|
||||
|
||||
--set the debug options
|
||||
debug["sql"] = true;
|
||||
|
||||
--create the api object
|
||||
api = freeswitch.API();
|
||||
|
||||
|
|
@ -38,6 +35,9 @@
|
|||
local Database = require "resources.functions.database";
|
||||
dbh = Database.new('system');
|
||||
|
||||
--set the debug options
|
||||
debug["sql"] = false;
|
||||
|
||||
--include json library
|
||||
local json
|
||||
if (debug["sql"]) then
|
||||
|
|
@ -144,10 +144,12 @@
|
|||
hangup_cause_q850 = tonumber(env:getHeader("hangup_cause_q850"));
|
||||
fax_file = env:getHeader("fax_file");
|
||||
|
||||
--prevent nil errors
|
||||
if (fax_file == nil) then
|
||||
--update the fax file if fax_filename is set
|
||||
if (env:getHeader("fax_filename") ~= nil) then
|
||||
fax_file = env:getHeader("fax_filename");
|
||||
end
|
||||
|
||||
--prevent nil errors
|
||||
if (fax_uri == nil) then
|
||||
fax_uri = "";
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue