aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--config/freeswitch/freeswitch.inc15
-rw-r--r--config/freeswitch/freeswitch.xml9
-rw-r--r--pkg_config.7.xml2
3 files changed, 20 insertions, 6 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();
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 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>FreeSWITCH Settings</name>
- <version>0.7</version>
+ <version>0.8</version>
<title>FreeSWITCH: Settings</title>
<include_file>/usr/local/pkg/freeswitch.inc</include_file>
<menu>
@@ -156,7 +156,12 @@
<prefix>/usr/local/lib/</prefix>
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/freeswitch/libspandsp.so.1</item>
- </additional_files_needed>
+ </additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/lib/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.com/packages/config/freeswitch/libodbc.so.1</item>
+ </additional_files_needed>
<additional_files_needed>
<prefix>/tmp/</prefix>
<chmod>0755</chmod>
diff --git a/pkg_config.7.xml b/pkg_config.7.xml
index 988d8051..18b61926 100644
--- a/pkg_config.7.xml
+++ b/pkg_config.7.xml
@@ -92,7 +92,7 @@
<pkginfolink>http://doc.pfsense.org/index.php/FreeSWITCH</pkginfolink>
<config_file>http://www.pfsense.com/packages/config/freeswitch/freeswitch.xml</config_file>
<depends_on_package_base_url>http://files.pfsense.org/packages/7/All/</depends_on_package_base_url>
- <version>0.7</version>
+ <version>0.8</version>
<status>Beta</status>
<required_version>1.2.1</required_version>
<maintainer>markjcrane@gmail.com</maintainer>