diff options
author | spag <spag@golwen.net> | 2013-02-19 13:16:12 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-19 13:16:12 +0100 |
commit | 2b3892ac24bb61c4814e0afe141bf53765fb1e4b (patch) | |
tree | 70baf3eca28ec49fa6edb54dae74122ffb77930f /misc/freeswitch/scripts/send_fax.lua | |
parent | de845aa642e22b0ae08c5ce991bcdef9b656e079 (diff) |
fax storage directory
Diffstat (limited to 'misc/freeswitch/scripts/send_fax.lua')
-rw-r--r-- | misc/freeswitch/scripts/send_fax.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/misc/freeswitch/scripts/send_fax.lua b/misc/freeswitch/scripts/send_fax.lua index 4898cb8..d717f93 100644 --- a/misc/freeswitch/scripts/send_fax.lua +++ b/misc/freeswitch/scripts/send_fax.lua @@ -2,7 +2,6 @@ -- (c) AMOOMA GmbH 2012-2013 -- -local FAX_FILE_PATH = "/opt/GS5/public/uploads/fax_document/tiff/"; local FAX_ANSWERING_TIMEOUT = 20; -- Set logger @@ -142,13 +141,11 @@ end if session and session:answered() then log:info('FAX_SEND - sending fax_document=' .. fax_document.id .. ' (' .. fax_document.tiff .. ')'); - local file_name = FAX_FILE_PATH .. fax_document.id .. "/" .. fax_document.tiff; - session:setVariable('fax_ident', fax_account.record.station_id) session:setVariable('fax_header', fax_account.record.name) session:setVariable('fax_verbose', 'false') local start_time = os.time(); - session:execute('txfax', file_name); + session:execute('txfax', fax_document.tiff); fax_state = { state = nil, |