aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-07-15 12:12:32 -0600
committermcrane <mctch@yahoo.com>2009-07-15 12:12:32 -0600
commite3762e1c21cdff6e3db41d419f06878900d608c3 (patch)
tree149b66637ca138c6e243a19ba87dfb303d88670e /config/freeswitch
parent3232f9a83bb042dd037de6560dc95007b7f42f02 (diff)
downloadpfsense-packages-e3762e1c21cdff6e3db41d419f06878900d608c3.tar.gz
pfsense-packages-e3762e1c21cdff6e3db41d419f06878900d608c3.tar.bz2
pfsense-packages-e3762e1c21cdff6e3db41d419f06878900d608c3.zip
FreeSWITCH package change download dir path for the dev version, and add auth-user to the extensions under advanced.
Diffstat (limited to 'config/freeswitch')
-rw-r--r--config/freeswitch/freeswitch.inc7
-rw-r--r--config/freeswitch/freeswitch_extensions_edit.tmp17
2 files changed, 18 insertions, 6 deletions
diff --git a/config/freeswitch/freeswitch.inc b/config/freeswitch/freeswitch.inc
index c7b256cf..3635229d 100644
--- a/config/freeswitch/freeswitch.inc
+++ b/config/freeswitch/freeswitch.inc
@@ -604,6 +604,9 @@ function sync_package_freeswitch_extensions()
}
$tmpxml .= " <param name=\"vm-mailto\" value=\"" . $rowhelper['vm-mailto'] . "\"/>\n";
}
+ if (strlen($rowhelper['auth-user']) > 0) {
+ $tmpxml .= " <param name=\"auth-user\" value=\"" . $rowhelper['auth-user'] . "\"/>\n";
+ }
if (strlen($rowhelper['auth-acl']) > 0) {
$tmpxml .= " <param name=\"auth-acl\" value=\"" . $rowhelper['auth-acl'] . "\"/>\n";
}
@@ -2749,8 +2752,8 @@ function freeswitch_php_install_command()
}
//$struname = exec('uname -v');
- //if (stristr($struname, 'FreeBSD 7.0')) {
- // $freebsd_version = "7.0";
+ //if (stristr($struname, 'FreeBSD 7.2')) {
+ // $freebsd_version = "7.2";
//}
//exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch.tgz"); //handled by freeswitch.xml
diff --git a/config/freeswitch/freeswitch_extensions_edit.tmp b/config/freeswitch/freeswitch_extensions_edit.tmp
index 8e4a72dc..1d1cbf95 100644
--- a/config/freeswitch/freeswitch_extensions_edit.tmp
+++ b/config/freeswitch/freeswitch_extensions_edit.tmp
@@ -58,10 +58,11 @@ if (isset($id) && $a_extensions[$id]) {
$pconfig['vm-keep-local-after-email'] = $a_extensions[$id]['vm-keep-local-after-email'];
$pconfig['user_context'] = $a_extensions[$id]['user_context'];
$pconfig['callgroup'] = $a_extensions[$id]['callgroup'];
+ $pconfig['auth-user'] = $a_extensions[$id]['auth-user'];
$pconfig['auth-acl'] = $a_extensions[$id]['auth-acl'];
$pconfig['cidr'] = $a_extensions[$id]['cidr'];
$pconfig['sip-force-contact'] = $a_extensions[$id]['sip-force-contact'];
- $pconfig['enabled'] = $a_extensions[$id]['enabled'];
+ $pconfig['enabled'] = $a_extensions[$id]['enabled'];
$pconfig['description'] = $a_extensions[$id]['description'];
}
@@ -92,13 +93,14 @@ if ($_POST) {
$ent['outbound_caller_id_number'] = $outbound_caller_id_number;
$ent['vm-mailto'] = $_POST['vm-mailto'];
$ent['vm-attach-file'] = $_POST['vm-attach-file'];
- $ent['vm-keep-local-after-email'] = $_POST['vm-keep-local-after-email'];
+ $ent['vm-keep-local-after-email'] = $_POST['vm-keep-local-after-email'];
$ent['user_context'] = $_POST['user_context'];
- $ent['callgroup'] = $_POST['callgroup'];
+ $ent['callgroup'] = $_POST['callgroup'];
+ $ent['auth-user'] = $_POST['auth-user'];
$ent['auth-acl'] = $_POST['auth-acl'];
$ent['cidr'] = $_POST['cidr'];
$ent['sip-force-contact'] = $_POST['sip-force-contact'];
- $ent['enabled'] = $_POST['enabled'];
+ $ent['enabled'] = $_POST['enabled'];
$ent['description'] = $_POST['description'];
if (isset($id) && $a_extensions[$id]) {
@@ -301,6 +303,13 @@ display_top_tabs(build_menu());
<div id="showadvanced" style="display:none">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
+ <td width="25%" valign="top" class="vncell">Auth-User</td>
+ <td width="75%" class="vtable">
+ <input name="auth-user" type="text" class="formfld unknown" id="auth-user" size="40" value="<?=htmlspecialchars($pconfig['auth-user']);?>">
+ <br> <span class="vexpl">Enter the auth user here.<br></span>
+ </td>
+ </tr>
+ <tr>
<td width="25%" valign="top" class="vncell">Auth-ACL</td>
<td width="75%" class="vtable">
<input name="auth-acl" type="text" class="formfld unknown" id="auth-acl" size="40" value="<?=htmlspecialchars($pconfig['auth-acl']);?>">