From 64110b9bb717607de17f0429fb9a882a74b20d3b Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 28 Apr 2014 23:25:33 +0000 Subject: [PATCH] Add /etc/freeswitch as an optional directory for freeswitch conf files --- resources/install.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/install.php b/resources/install.php index 1cb910e470..762a39a982 100644 --- a/resources/install.php +++ b/resources/install.php @@ -166,6 +166,12 @@ require_once "resources/functions.php"; $switch_sip_profiles_dir = $switch_conf_dir.'/sip_profiles'; $switch_dialplan_dir = $switch_conf_dir.'/dialplan'; } + if (file_exists('/etc/freeswitch')) { + $switch_conf_dir = '/etc/freeswitch'; + $switch_extensions_dir = $switch_conf_dir.'/directory'; + $switch_sip_profiles_dir = $switch_conf_dir.'/sip_profiles'; + $switch_dialplan_dir = $switch_conf_dir.'/dialplan'; + } if (file_exists('/var/lib/freeswitch/db')) { $switch_db_dir = '/var/lib/freeswitch/db'; }