summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/trigger_controller.rb2
-rw-r--r--lib/tasks/send_fax_notifications.rake2
-rw-r--r--misc/freeswitch/scripts/dialplan/fax.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/trigger_controller.rb b/app/controllers/trigger_controller.rb
index 2b491be..9a03979 100644
--- a/app/controllers/trigger_controller.rb
+++ b/app/controllers/trigger_controller.rb
@@ -1,7 +1,7 @@
class TriggerController < ApplicationController
TIFF_FUFFIX = ".tiff"
PDF_SUFFIX = ".pdf"
- TMP_DIR = "/tmp/"
+ TMP_DIR = "/var/spool/freeswitch/"
def voicemail
if !params[:sip_account_id].blank?
diff --git a/lib/tasks/send_fax_notifications.rake b/lib/tasks/send_fax_notifications.rake
index 2ac74c8..b456466 100644
--- a/lib/tasks/send_fax_notifications.rake
+++ b/lib/tasks/send_fax_notifications.rake
@@ -6,7 +6,7 @@ task :send_fax_notifications => :environment do
FaxDocument.where(:state => 'received').each do |fax_document|
TIFF_FUFFIX = ".tiff"
PDF_SUFFIX = ".pdf"
- TMP_DIR = "/tmp/"
+ TMP_DIR = "/var/spool/freeswitch/"
tiff_file = File.basename(fax_document.tiff.to_s)
diff --git a/misc/freeswitch/scripts/dialplan/fax.lua b/misc/freeswitch/scripts/dialplan/fax.lua
index 49a45d9..8cfa9e5 100644
--- a/misc/freeswitch/scripts/dialplan/fax.lua
+++ b/misc/freeswitch/scripts/dialplan/fax.lua
@@ -4,7 +4,7 @@
module(...,package.seeall)
-FAX_DOCUMENTS_DIRECTORY = '/tmp/'
+FAX_DOCUMENTS_DIRECTORY = '/var/spool/freeswitch/'
FAX_PARALLEL_MAX = 8;
Fax = {}