diff options
author | Mark Crane <mcrane@pfsense.org> | 2009-01-31 09:12:23 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2009-01-31 09:12:23 +0000 |
commit | d264affd78ce4e5d881c98db98c336c21474f573 (patch) | |
tree | 66502cc621d5a8b5c3d14c2c0914584386a26759 | |
parent | 05ab46353f2460d272082cc43a41c99f5fdc4637 (diff) | |
download | pfsense-packages-d264affd78ce4e5d881c98db98c336c21474f573.tar.gz pfsense-packages-d264affd78ce4e5d881c98db98c336c21474f573.tar.bz2 pfsense-packages-d264affd78ce4e5d881c98db98c336c21474f573.zip |
pfSense FreeSWITCH package add ability to send voicemail to multiple accounts for each extension. Seperate emails with a comma or a semi-colon.
-rw-r--r-- | packages/freeswitch/freeswitch.inc | 2 | ||||
-rw-r--r-- | packages/freeswitch/freeswitch.xml | 2 | ||||
-rw-r--r-- | packages/freeswitch/freeswitch_mailto.tmp | 10 | ||||
-rw-r--r-- | pkg_config.7.xml | 2 |
4 files changed, 12 insertions, 4 deletions
diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc index 198b403d..82fa97b1 100644 --- a/packages/freeswitch/freeswitch.inc +++ b/packages/freeswitch/freeswitch.inc @@ -2169,7 +2169,7 @@ function freeswitch_php_install_command() } $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = "1.0.2 revision 11245."; - $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.6.5"; + $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.7"; conf_mount_ro(); config_unlock(); diff --git a/packages/freeswitch/freeswitch.xml b/packages/freeswitch/freeswitch.xml index a3c314b5..7c557c30 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.6.5</version> + <version>0.7</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 f24ce26a..23645570 100644 --- a/packages/freeswitch/freeswitch_mailto.tmp +++ b/packages/freeswitch/freeswitch_mailto.tmp @@ -206,7 +206,15 @@ ob_start(); $mail->AltBody = $textplain; // optional, comment out and test $mail->MsgHTML($texthtml); - $mail->AddAddress($var['To']); + + $tmp_to = $var['To']; + $tmp_to = str_replace(";", ",", $tmp_to); + $tmp_to_array = split(",", $tmp_to); + foreach($tmp_to_array as $tmp_to_row) { + if (strlen($tmp_to_row) > 0) { + $mail->AddAddress($tmp_to_row); + } + } if (strlen($strwav) > 0) { //$mail->AddAttachment("/usr/local/freeswitch/data/domain/example.wav"); // attachment diff --git a/pkg_config.7.xml b/pkg_config.7.xml index 8c4c20de..b15c3948 100644 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -78,7 +78,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.6.5</version> + <version>0.7</version> <status>Beta</status> <required_version>1.2.1</required_version> <maintainer>markjcrane@gmail.com</maintainer> |