From 7160eb267803912bbc72f0486727d9f00eabbd78 Mon Sep 17 00:00:00 2001 From: mcrane Date: Sun, 22 Feb 2009 00:32:00 -0700 Subject: FreeSWITCH version update 1.0.3 rev 12228, make a backup of the defaultconfig, fix a minor install error --- config/freeswitch/freeswitch.inc | 15 ++++++++++++--- config/freeswitch/freeswitch.xml | 9 +++++++-- 2 files changed, 19 insertions(+), 5 deletions(-) (limited to 'config/freeswitch') diff --git a/config/freeswitch/freeswitch.inc b/config/freeswitch/freeswitch.inc index 82fa97b1..ebd4c34e 100644 --- a/config/freeswitch/freeswitch.inc +++ b/config/freeswitch/freeswitch.inc @@ -35,6 +35,11 @@ */ +$freeswitch_build_version = "1.0.3"; +$freeswitch_build_revision = "12228"; +$freeswitch_package_version = "0.8"; + + function guid() { if (function_exists('com_create_guid')){ @@ -1685,6 +1690,9 @@ function freeswitch_php_install_command() exec("tar zxvf /tmp/freeswitch.tgz -C /usr/local/"); unlink_if_exists("/tmp/freeswitch.tgz"); + + //make a backup copy of the default config + exec("cp -R /usr/local/freeswitch/conf /usr/local/freeswitch/conf.rev".$freeswitch_build_revision.".orig"); //remove some default config files that are not needed unlink_if_exists("/usr/local/freeswitch/conf/dialplan/default/01_example.com.xml"); @@ -1898,7 +1906,7 @@ function freeswitch_php_install_command() $contents = str_replace("", "", $contents); fwrite($handle, $contents); unset($contents); - fclose($fout); + fclose($handle); unset($filename); //prepare shout.conf.xml for mod_shout @@ -2167,9 +2175,10 @@ function freeswitch_php_install_command() if (pkg_is_service_running('freeswitch')) { sync_package_freeswitch_ivr(); } + - $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = "1.0.2 revision 11245."; - $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.7"; + $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = $freeswitch_build_version." revision ".$freeswitch_build_revision."."; + $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = $freeswitch_package_version; conf_mount_ro(); config_unlock(); diff --git a/config/freeswitch/freeswitch.xml b/config/freeswitch/freeswitch.xml index 7c557c30..fb973268 100644 --- a/config/freeswitch/freeswitch.xml +++ b/config/freeswitch/freeswitch.xml @@ -44,7 +44,7 @@ Describe your package requirements here Currently there are no FAQ items provided. FreeSWITCH Settings - 0.7 + 0.8 FreeSWITCH: Settings /usr/local/pkg/freeswitch.inc @@ -156,7 +156,12 @@ /usr/local/lib/ 0755 http://www.pfsense.com/packages/config/freeswitch/libspandsp.so.1 - + + + /usr/local/lib/ + 0755 + http://www.pfsense.com/packages/config/freeswitch/libodbc.so.1 + /tmp/ 0755 -- cgit v1.2.3