From d19baac352d024c7efdb9fa7378e92364e62837b Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 16 Dec 2008 18:56:10 +0000 Subject: FreeSWITCH package required settings to switch.conf.xml to make voicemail to email work. --- packages/freeswitch/freeswitch.inc | 16 ++++++++++++++-- packages/freeswitch/freeswitch.xml | 2 +- packages/freeswitch/freeswitch_mailto.tmp | 1 - pkg_config.7.xml | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc index 4dc5ff74..2919048e 100644 --- a/packages/freeswitch/freeswitch.inc +++ b/packages/freeswitch/freeswitch.inc @@ -1769,7 +1769,19 @@ function freeswitch_php_install_command() write_config(); - + //prepare switch.conf.xml for voicemail to email + $handle = fopen("/usr/local/freeswitch/conf/autoload_configs/switch.conf.xml","rb"); + $contents = fread($handle, filesize($filename)); + fclose($handle); + + $handle = fopen("/usr/local/freeswitch/conf/autoload_configs/switch.conf.xml","w"); + $contents = str_replace("", "", $contents); + $contents = str_replace("", "", $contents); + fwrite($handle, $contents); + unset($contents); + fclose($fout); + + $fout = fopen("/usr/local/freeswitch/conf/autoload_configs/event_socket.conf.xml","w"); $tmpxml = "\n"; $tmpxml .= " \n"; @@ -2014,7 +2026,7 @@ function freeswitch_php_install_command() } $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = "1.0.1 revision 10638."; - $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.4.8"; + $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.4.8.1"; conf_mount_ro(); diff --git a/packages/freeswitch/freeswitch.xml b/packages/freeswitch/freeswitch.xml index ffb0b5d9..6fb508f8 100644 --- a/packages/freeswitch/freeswitch.xml +++ b/packages/freeswitch/freeswitch.xml @@ -44,7 +44,7 @@ Describe your package requirements here Currently there are no FAQ items provided. FreeSWITCH Settings - 0.4.8 + 0.4.8.1 FreeSWITCH: Settings /usr/local/pkg/freeswitch.inc diff --git a/packages/freeswitch/freeswitch_mailto.tmp b/packages/freeswitch/freeswitch_mailto.tmp index 32587750..64208488 100644 --- a/packages/freeswitch/freeswitch_mailto.tmp +++ b/packages/freeswitch/freeswitch_mailto.tmp @@ -224,7 +224,6 @@ $content = ob_get_contents(); //get the output from the buffer ob_end_clean(); //clean the buffer fwrite($fp, $content); - fclose($fp); ?> \ No newline at end of file diff --git a/pkg_config.7.xml b/pkg_config.7.xml index 203816b4..ce608bfb 100644 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -66,7 +66,7 @@ http://forum.pfsense.org/index.php/topic,11930.0.html http://www.pfsense.com/packages/config/freeswitch/freeswitch.xml http://files.pfsense.org/packages/7/All/ - 0.4.8 + 0.4.8.1 Beta 1.2.1 markjcrane@gmail.com -- cgit v1.2.3