diff options
author | Mark Crane <mcrane@pfsense.org> | 2008-12-16 18:56:10 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2008-12-16 18:56:10 +0000 |
commit | d19baac352d024c7efdb9fa7378e92364e62837b (patch) | |
tree | 44f418f0a4671e1069c0bfc634f09d793d386731 /packages | |
parent | 9b70958ac3bcfc0c59c83dc605e71afa53d7da75 (diff) | |
download | pfsense-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.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/freeswitch/freeswitch.inc | 16 | ||||
-rw-r--r-- | packages/freeswitch/freeswitch.xml | 2 | ||||
-rw-r--r-- | packages/freeswitch/freeswitch_mailto.tmp | 1 |
3 files changed, 15 insertions, 4 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 |