aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2008-12-16 18:56:10 +0000
committerMark Crane <mcrane@pfsense.org>2008-12-16 18:56:10 +0000
commitd19baac352d024c7efdb9fa7378e92364e62837b (patch)
tree44f418f0a4671e1069c0bfc634f09d793d386731
parent9b70958ac3bcfc0c59c83dc605e71afa53d7da75 (diff)
downloadpfsense-packages-d19baac352d024c7efdb9fa7378e92364e62837b.tar.gz
pfsense-packages-d19baac352d024c7efdb9fa7378e92364e62837b.tar.bz2
pfsense-packages-d19baac352d024c7efdb9fa7378e92364e62837b.zip
FreeSWITCH package required settings to switch.conf.xml to make voicemail to email work.
-rw-r--r--packages/freeswitch/freeswitch.inc16
-rw-r--r--packages/freeswitch/freeswitch.xml2
-rw-r--r--packages/freeswitch/freeswitch_mailto.tmp1
-rw-r--r--pkg_config.7.xml2
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("<param name=\"mailer-app\" value=\"sendmail\"/>", "<param name=\"mailer-app\" value=\"/usr/local/bin/php\"/>", $contents);
+ $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);
+
+
$fout = fopen("/usr/local/freeswitch/conf/autoload_configs/event_socket.conf.xml","w");
$tmpxml = "<configuration name=\"event_socket.conf\" description=\"Socket Client\">\n";
$tmpxml .= " <settings>\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 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>FreeSWITCH Settings</name>
- <version>0.4.8</version>
+ <version>0.4.8.1</version>
<title>FreeSWITCH: Settings</title>
<include_file>/usr/local/pkg/freeswitch.inc</include_file>
<menu>
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 @@
<pkginfolink>http://forum.pfsense.org/index.php/topic,11930.0.html</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.4.8</version>
+ <version>0.4.8.1</version>
<status>Beta</status>
<required_version>1.2.1</required_version>
<maintainer>markjcrane@gmail.com</maintainer>