aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch.inc
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-02-22 00:32:00 -0700
committermcrane <mctch@yahoo.com>2009-02-22 00:35:47 -0700
commit7160eb267803912bbc72f0486727d9f00eabbd78 (patch)
treee5b7d2aa7ac68c2ae0defc9f30cf5cca40a5db13 /config/freeswitch/freeswitch.inc
parent2a40af2f1eb5f5d64f984f2bcf2aea44b0e6b2ef (diff)
downloadpfsense-packages-7160eb267803912bbc72f0486727d9f00eabbd78.tar.gz
pfsense-packages-7160eb267803912bbc72f0486727d9f00eabbd78.tar.bz2
pfsense-packages-7160eb267803912bbc72f0486727d9f00eabbd78.zip
FreeSWITCH version update 1.0.3 rev 12228, make a backup of the defaultconfig, fix a minor install error
Diffstat (limited to 'config/freeswitch/freeswitch.inc')
-rw-r--r--config/freeswitch/freeswitch.inc15
1 files changed, 12 insertions, 3 deletions
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("<param name=\"mailer-app-args\" value=\"-t\"/>", "<param name=\"mailer-app-args\" value=\"/usr/local/www/freeswitch/freeswitch_mailto.php\"/>", $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();