On Debian or Ubuntu the /etc/init.d seems to require /etc/freeswitch this causes a problem source compiled systems changing the directory to detect if its a package install to /etc/freeswitch/dialplan.

This commit is contained in:
Mark Crane
2013-07-18 23:50:39 +00:00
parent 018445e2ab
commit 8cd87551eb

View File

@@ -148,7 +148,7 @@ require_once "resources/functions.php";
if (file_exists('/usr/bin')) {
$switch_bin_dir = '/usr/bin'; //freeswitch bin directory
}
if (file_exists('/etc/freeswitch')) {
if (file_exists('/etc/freeswitch/dialplan')) {
$switch_conf_dir = '/etc/freeswitch';
$switch_extensions_dir = $switch_conf_dir.'/directory';
$switch_gateways_dir = $switch_conf_dir.'/sip_profiles';