aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeswitch
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2008-12-17 18:04:39 +0000
committerMark Crane <mcrane@pfsense.org>2008-12-17 18:04:39 +0000
commita28d12a31c3997e98d3146e768fdb9aa9866adce (patch)
treeb47c617fbce5d206e18dbd3c8eea7fde12180519 /packages/freeswitch
parentffe2044de0f9446294d6609a23120fb3a35e2b35 (diff)
downloadpfsense-packages-a28d12a31c3997e98d3146e768fdb9aa9866adce.tar.gz
pfsense-packages-a28d12a31c3997e98d3146e768fdb9aa9866adce.tar.bz2
pfsense-packages-a28d12a31c3997e98d3146e768fdb9aa9866adce.zip
FreeSWITCH pkg fix voicemail to email TLS support so that it works with gmail.
Diffstat (limited to 'packages/freeswitch')
-rw-r--r--packages/freeswitch/freeswitch.inc2
-rw-r--r--packages/freeswitch/freeswitch.xml18
-rw-r--r--packages/freeswitch/freeswitch_mailto.tmp11
3 files changed, 21 insertions, 10 deletions
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 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>FreeSWITCH Settings</name>
- <version>0.4.9</version>
+ <version>0.5.0</version>
<title>FreeSWITCH: Settings</title>
<include_file>/usr/local/pkg/freeswitch.inc</include_file>
<menu>
@@ -366,7 +366,7 @@
<field>
<fielddescr>SMTP Host</fielddescr>
<fieldname>smtphost</fieldname>
- <description>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</description>
+ <description>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</description>
<type>input</type>
</field>
<field>
@@ -380,12 +380,12 @@
<value></value>
</option>
<option>
- <name>TLS</name>
- <value>TLS</value>
+ <name>tls</name>
+ <value>tls</value>
</option>
<option>
- <name>SSL</name>
- <value>SSL</value>
+ <name>ssl</name>
+ <value>ssl</value>
</option>
</options>
</field>
@@ -417,6 +417,12 @@
<description>Enter the SMTP authentication password.</description>
<type>input</type>
</field>
+ <field>
+ <fielddescr>SMTP From</fielddescr>
+ <fieldname>smtpfrom</fieldname>
+ <description>Enter the SMTP From email address.</description>
+ <type>input</type>
+ </field>
</fields>
<custom_add_php_command>
</custom_add_php_command>
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