|
@@ -171,12 +171,12 @@ require_once "resources/functions.php";
|
|
$switch_dialplan_dir = $switch_conf_dir.'/dialplan';
|
|
$switch_dialplan_dir = $switch_conf_dir.'/dialplan';
|
|
}
|
|
}
|
|
//old
|
|
//old
|
|
- elseif (file_exists('/etc/freeswitch/vars.xml')) {
|
|
|
|
- $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('/etc/freeswitch/vars.xml')) {
|
|
|
|
+ // $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')) {
|
|
if (file_exists('/var/lib/freeswitch/db')) {
|
|
$switch_db_dir = '/var/lib/freeswitch/db';
|
|
$switch_db_dir = '/var/lib/freeswitch/db';
|
|
}
|
|
}
|
|
@@ -191,35 +191,35 @@ require_once "resources/functions.php";
|
|
$switch_scripts_dir = '/var/lib/fusionpbx/scripts';
|
|
$switch_scripts_dir = '/var/lib/fusionpbx/scripts';
|
|
}
|
|
}
|
|
//old
|
|
//old
|
|
- elseif (file_exists('/usr/share/freeswitch/scripts')) {
|
|
|
|
- $switch_scripts_dir = '/usr/share/freeswitch/scripts';
|
|
|
|
- }
|
|
|
|
|
|
+ //if (file_exists('/usr/share/freeswitch/scripts')) {
|
|
|
|
+ // $switch_scripts_dir = '/usr/share/freeswitch/scripts';
|
|
|
|
+ //}
|
|
//new
|
|
//new
|
|
if (file_exists('/usr/share/freeswitch/grammar')) {
|
|
if (file_exists('/usr/share/freeswitch/grammar')) {
|
|
$switch_grammar_dir = '/usr/share/freeswitch/grammar';
|
|
$switch_grammar_dir = '/usr/share/freeswitch/grammar';
|
|
}
|
|
}
|
|
//old
|
|
//old
|
|
- elseif (file_exists('/usr/share/freeswitch/grammar')) {
|
|
|
|
- $switch_grammar_dir = '/usr/share/freeswitch/grammar';
|
|
|
|
- }
|
|
|
|
|
|
+ //if (file_exists('/usr/share/freeswitch/grammar')) {
|
|
|
|
+ // $switch_grammar_dir = '/usr/share/freeswitch/grammar';
|
|
|
|
+ //}
|
|
//new
|
|
//new
|
|
if (file_exists('/var/lib/fusionpbx/storage')) {
|
|
if (file_exists('/var/lib/fusionpbx/storage')) {
|
|
$switch_storage_dir = '/var/lib/fusionpbx/storage';
|
|
$switch_storage_dir = '/var/lib/fusionpbx/storage';
|
|
$switch_voicemail_dir = $switch_storage_dir.'/voicemail';
|
|
$switch_voicemail_dir = $switch_storage_dir.'/voicemail';
|
|
}
|
|
}
|
|
//old
|
|
//old
|
|
- elseif (file_exists('/var/lib/freeswitch/storage')) {
|
|
|
|
- $switch_storage_dir = '/var/lib/freeswitch/storage';
|
|
|
|
- $switch_voicemail_dir = $switch_storage_dir.'/voicemail';
|
|
|
|
- }
|
|
|
|
|
|
+ //if (file_exists('/var/lib/freeswitch/storage')) {
|
|
|
|
+ // $switch_storage_dir = '/var/lib/freeswitch/storage';
|
|
|
|
+ // $switch_voicemail_dir = $switch_storage_dir.'/voicemail';
|
|
|
|
+ //}
|
|
//new
|
|
//new
|
|
if (file_exists('/var/lib/fusionpbx/recordings')) {
|
|
if (file_exists('/var/lib/fusionpbx/recordings')) {
|
|
$switch_recordings_dir = '/var/lib/fusionpbx/recordings';
|
|
$switch_recordings_dir = '/var/lib/fusionpbx/recordings';
|
|
}
|
|
}
|
|
//old
|
|
//old
|
|
- elseif (file_exists('/var/lib/freeswitch/recordings')) {
|
|
|
|
- $switch_recordings_dir = '/var/lib/freeswitch/recordings';
|
|
|
|
- }
|
|
|
|
|
|
+ //if (file_exists('/var/lib/freeswitch/recordings')) {
|
|
|
|
+ // $switch_recordings_dir = '/var/lib/freeswitch/recordings';
|
|
|
|
+ //}
|
|
if (file_exists('/usr/share/freeswitch/sounds')) {
|
|
if (file_exists('/usr/share/freeswitch/sounds')) {
|
|
$switch_sounds_dir = '/usr/share/freeswitch/sounds';
|
|
$switch_sounds_dir = '/usr/share/freeswitch/sounds';
|
|
}
|
|
}
|