From a28d12a31c3997e98d3146e768fdb9aa9866adce Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 17 Dec 2008 18:04:39 +0000 Subject: FreeSWITCH pkg fix voicemail to email TLS support so that it works with gmail. --- packages/freeswitch/freeswitch.inc | 2 +- packages/freeswitch/freeswitch.xml | 18 ++++++++++++------ packages/freeswitch/freeswitch_mailto.tmp | 11 ++++++++--- 3 files changed, 21 insertions(+), 10 deletions(-) (limited to 'packages/freeswitch') diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc index a171560d..4a20601c 100644 --- a/packages/freeswitch/freeswitch.inc +++ b/packages/freeswitch/freeswitch.inc @@ -2028,7 +2028,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.9"; + $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.5.0"; conf_mount_ro(); diff --git a/packages/freeswitch/freeswitch.xml b/packages/freeswitch/freeswitch.xml index c219ff5c..4f82786c 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.4.9 + 0.5.0 FreeSWITCH: Settings /usr/local/pkg/freeswitch.inc @@ -366,7 +366,7 @@ SMTP Host smtphost - Enter the SMTP host address. If you using a different port append it on the end with a semi-colon. e.g. mail.example.com:2525 + Enter the SMTP host address. If you using a different port append it on the end with a semi-colon. e.g. smtp.gmail.com:465 input @@ -380,12 +380,12 @@ @@ -417,6 +417,12 @@ Enter the SMTP authentication password. input + + SMTP From + smtpfrom + Enter the SMTP From email address. + input + diff --git a/packages/freeswitch/freeswitch_mailto.tmp b/packages/freeswitch/freeswitch_mailto.tmp index 8ecc773c..3c8dbe1f 100644 --- a/packages/freeswitch/freeswitch_mailto.tmp +++ b/packages/freeswitch/freeswitch_mailto.tmp @@ -36,9 +36,12 @@ global $config; $tmp_smtphost = $config['installedpackages']['freeswitchsettings']['config'][0]['smtphost']; $tmp_smtpsecure = $config['installedpackages']['freeswitchsettings']['config'][0]['smtpsecure']; //options "", "TLS", "SSL" +$tmp_smtpsecure = strtolower($tmp_smtpsecure); $tmp_smtpauth = $config['installedpackages']['freeswitchsettings']['config'][0]['smtpauth']; // SMTP authentication: true or false $tmp_smtpusername = $config['installedpackages']['freeswitchsettings']['config'][0]['smtpusername']; $tmp_smtppassword = $config['installedpackages']['freeswitchsettings']['config'][0]['smtppassword']; +$tmp_smtpfrom = $config['installedpackages']['freeswitchsettings']['config'][0]['smtpfrom']; + ini_set(max_execution_time,900); //15 minutes @@ -185,7 +188,7 @@ ob_start(); $mail = new PHPMailer(); - $mail->IsSMTP(); // set mailer to use SMTP + $mail->IsSMTP(); // set mailer to use SMTP $mail->SMTPAuth = $tmp_smtpauth; // turn on/off SMTP authentication $mail->Host = $tmp_smtphost; if (strlen($tmp_smtpsecure)>0) { @@ -194,8 +197,10 @@ ob_start(); if ($tmp_smtpauth) { $mail->Username = $tmp_smtpusername; $mail->Password = $tmp_smtppassword; - } - $mail->From = $var['From']; + } + + + $mail->From = $tmp_smtpfrom; $mail->FromName = $var['From']; $mail->Subject = $var['Subject']; $mail->AltBody = $textplain; // optional, comment out and test -- cgit v1.2.3