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 ++++++++++++++++++++--- config/freeswitch/freeswitch.xml | 12 ++++++++++++ config/freeswitch/freeswitch_features.tmp | 4 ++-- config/freeswitch/freeswitch_recordings.tmp | 7 +++---- 4 files changed, 37 insertions(+), 9 deletions(-) mode change 100755 => 100644 config/freeswitch/freeswitch.inc (limited to 'config/freeswitch') 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']; diff --git a/config/freeswitch/freeswitch.xml b/config/freeswitch/freeswitch.xml index f0aefb79..b6dd9192 100644 --- a/config/freeswitch/freeswitch.xml +++ b/config/freeswitch/freeswitch.xml @@ -456,6 +456,18 @@ Enter the SMTP From Name. input + + Mod Shout Decoder + mod_shout_decoder + Enter the Decoder. default: i386 + input + + + Mod Shout Volume + mod_shout_volume + Enter the Volume. default: 0.3 + input + diff --git a/config/freeswitch/freeswitch_features.tmp b/config/freeswitch/freeswitch_features.tmp index aee3002a..612e04dd 100644 --- a/config/freeswitch/freeswitch_features.tmp +++ b/config/freeswitch/freeswitch_features.tmp @@ -154,8 +154,8 @@ include("head.inc"); Open - - Music on hold can be in WAV format. For best performance upload 16bit 8khz/16khz Mono WAV files. + Music on hold can be in WAV or MP3 format. To play an MP3 files you must have mod_shout enabled on the 'Modules' tab. + For best performance upload 16bit 8khz/16khz Mono WAV files. diff --git a/config/freeswitch/freeswitch_recordings.tmp b/config/freeswitch/freeswitch_recordings.tmp index d747af0c..1366c514 100644 --- a/config/freeswitch/freeswitch_recordings.tmp +++ b/config/freeswitch/freeswitch_recordings.tmp @@ -391,10 +391,9 @@ if ($config_change == 1) {

Music on Hold:
- - Music on hold is in WAV format. - For best performance upload 16bit 8khz/16khz Mono WAV files. + Music on hold can be in WAV or MP3 format. To play an MP3 file you must have + mod_shout enabled on the 'Modules' tab. You can adjust the volume of the MP3 + audio from the 'Settings' tab. For best performance upload 16bit 8khz/16khz Mono WAV files.

-- cgit v1.2.3