From 1a72877f15f102d427d445b5bbbcc1fcfe5753a2 Mon Sep 17 00:00:00 2001 From: mcrane Date: Sat, 25 Apr 2009 23:49:34 -0600 Subject: FreeSWITCH add mod_shout to the settings tab. --- config/freeswitch/freeswitch.inc | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) mode change 100755 => 100644 config/freeswitch/freeswitch.inc (limited to 'config/freeswitch/freeswitch.inc') diff --git a/config/freeswitch/freeswitch.inc b/config/freeswitch/freeswitch.inc old mode 100755 new mode 100644 index 9333f7cc..e61f7e10 --- a/config/freeswitch/freeswitch.inc +++ b/config/freeswitch/freeswitch.inc @@ -342,6 +342,17 @@ function sync_package_freeswitch_settings() fclose($fout); recording_js(); + + //shout.conf.xml + $fout = fopen("/usr/local/freeswitch/conf/autoload_configs/shout.conf.xml","w"); + $tmpxml = "\n"; + $tmpxml .= " \n"; + $tmpxml .= " \n"; + $tmpxml .= " \n"; + $tmpxml .= " \n"; + $tmpxml .= " \n"; + $tmpxml .= " \n"; + $tmpxml .= ""; //config.js $admin_pin = $config['installedpackages']['freeswitchsettings']['config'][0]['admin_pin']; @@ -1681,7 +1692,7 @@ function sync_package_freeswitch() function freeswitch_php_install_command() { global $config; - $freeswitch_package_version = "0.8.4.4"; + $freeswitch_package_version = "0.8.4.5"; $freeswitch_build_version = "1.0.3"; $freeswitch_build_revision = "12545"; @@ -1739,7 +1750,7 @@ function freeswitch_php_install_command() //unlink_if_exists("/tmp/mod_shout.so.tmp"); exec("cp /tmp/mod_fax.so.1 /usr/local/freeswitch/mod/mod_fax.so"); - unlink_if_exists("/tmp/mod_shout.so.tmp"); + unlink_if_exists("/tmp/mod_fax.so.tmp"); //rename PHP files from .tmp to .php @@ -1853,7 +1864,13 @@ function freeswitch_php_install_command() } if (strlen($config['installedpackages']['freeswitchsettings']['config'][0]['admin_pin']) == 0) { $config['installedpackages']['freeswitchsettings']['config'][0]['admin_pin'] = "7575"; - } + } + if (strlen($config['installedpackages']['freeswitchsettings']['config'][0]['mod_shout_decoder']) == 0) { + $config['installedpackages']['freeswitchsettings']['config'][0]['mod_shout_decoder'] = "i386"; + } + if (strlen($config['installedpackages']['freeswitchsettings']['config'][0]['mod_shout_volume']) == 0) { + $config['installedpackages']['freeswitchsettings']['config'][0]['mod_shout_volume'] = "0.3"; + } $numbering_plan = $config['installedpackages']['freeswitchsettings']['config'][0]['numbering_plan']; $event_socket_password = $config['installedpackages']['freeswitchsettings']['config'][0]['event_socket_password']; -- cgit v1.2.3