summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Pawlowski <julian.pawlowski@gmail.com>2013-02-18 11:19:06 +0100
committerJulian Pawlowski <julian.pawlowski@gmail.com>2013-02-18 11:19:06 +0100
commit4f89e10f2aaeeeb2696f8e456149e8f66e7bb02b (patch)
tree38d5ff9c413bd776c90776cc45f7f6c59c5ae8a6
parent55784bcffc0678ce6102c0b81447434a8030ebd2 (diff)
change fax spool directory
-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 = {}