From d264affd78ce4e5d881c98db98c336c21474f573 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 31 Jan 2009 09:12:23 +0000 Subject: pfSense FreeSWITCH package add ability to send voicemail to multiple accounts for each extension. Seperate emails with a comma or a semi-colon. --- packages/freeswitch/freeswitch.inc | 2 +- packages/freeswitch/freeswitch.xml | 2 +- packages/freeswitch/freeswitch_mailto.tmp | 10 +++++++++- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'packages/freeswitch') 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 @@ Describe your package requirements here Currently there are no FAQ items provided. FreeSWITCH Settings - 0.6.5 + 0.7 FreeSWITCH: Settings /usr/local/pkg/freeswitch.inc 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 -- cgit v1.2.3