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/freeswitch/freeswitch.inc | |
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/freeswitch/freeswitch.inc')
-rw-r--r-- | packages/freeswitch/freeswitch.inc | 16 |
1 files changed, 14 insertions, 2 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(); |