aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch_gateways_edit.tmp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-04-19 02:04:35 -0600
committermcrane <mctch@yahoo.com>2009-04-19 02:04:35 -0600
commit9917ec285689b2088a8143af0e21a303d736b828 (patch)
tree5829c2a2fe76e329ae841db22ba2888c403a3c1d /config/freeswitch/freeswitch_gateways_edit.tmp
parent439e960cad49bffbe4ad306fe119bc4ac7d02366 (diff)
downloadpfsense-packages-9917ec285689b2088a8143af0e21a303d736b828.tar.gz
pfsense-packages-9917ec285689b2088a8143af0e21a303d736b828.tar.bz2
pfsense-packages-9917ec285689b2088a8143af0e21a303d736b828.zip
FreeSWITCH remove trailing white spaces.
Diffstat (limited to 'config/freeswitch/freeswitch_gateways_edit.tmp')
-rw-r--r--config/freeswitch/freeswitch_gateways_edit.tmp130
1 files changed, 65 insertions, 65 deletions
diff --git a/config/freeswitch/freeswitch_gateways_edit.tmp b/config/freeswitch/freeswitch_gateways_edit.tmp
index 7730a774..e0d1d3be 100644
--- a/config/freeswitch/freeswitch_gateways_edit.tmp
+++ b/config/freeswitch/freeswitch_gateways_edit.tmp
@@ -1,11 +1,11 @@
-<?php
+<?php
/* $Id$ */
/*
freeswitch_gateways_edit.php
Copyright (C) 2008 Mark J Crane
All rights reserved.
-
+
FreeSWITCH (TM)
http://www.freeswitch.org/
@@ -104,7 +104,7 @@ if ($_POST) {
$a_gateways[$id] = $ent;
}
else {
- //add
+ //add
$a_gateways[] = $ent;
}
@@ -115,29 +115,29 @@ if ($_POST) {
$gatewayid = $_POST['gatewayid'];
$gateway = $_POST['gateway'];
$context = $_POST['context'];
-
+
$default_area_code = &$config['installedpackages']['freeswitchsettings']['config'][0]['default_area_code'];
$a_dialplan_includes = &$config['installedpackages']['freeswitchdialplanincludes']['config'];
- $a_dialplan_include_details = &$config['installedpackages']['freeswitchdialplanincludedetails']['config'];
+ $a_dialplan_include_details = &$config['installedpackages']['freeswitchdialplanincludedetails']['config'];
-
+
$tmp_array = split("\\\n", $_POST['dialplan_expression']);
foreach($tmp_array as $dialplan_expression) {
-
+
$dialplan_expression = trim($dialplan_expression);
if (strlen($dialplan_expression)>0) {
-
- switch ($dialplan_expression) {
+
+ switch ($dialplan_expression) {
case "^(\d{7})$":
$action_data = "sofia/gateway/".$gateway."/1".$default_area_code."\$1";
$label = "7 digits";
- $abbrv = "7d";
- break;
+ $abbrv = "7d";
+ break;
case "^(\d{10})$":
$action_data = "sofia/gateway/".$gateway."/1\$1";
$label = "10 digits";
- $abbrv = "10d";
+ $abbrv = "10d";
break;
case "^(\d{11})$":
$action_data = "sofia/gateway/".$gateway."/\$1";
@@ -151,9 +151,9 @@ if ($_POST) {
break;
case "^411$":
$action_data = "sofia/gateway/".$gateway."/\$1";
- $label = "411";
+ $label = "411";
$abbrv = "411";
- break;
+ break;
case "^911$":
$action_data = "sofia/gateway/".$gateway."/\$1";
$label = "911";
@@ -162,17 +162,17 @@ if ($_POST) {
case "^9(\d{3})$":
$action_data = "sofia/gateway/".$gateway."/1".$default_area_code."\$1";
$label = "dial 9, 3 digits";
- $abbrv = "9.3d";
+ $abbrv = "9.3d";
break;
case "^9(\d{4})$":
$action_data = "sofia/gateway/".$gateway."/1".$default_area_code."\$1";
$label = "dial 9, 4 digits";
- $abbrv = "9.4d";
- break;
+ $abbrv = "9.4d";
+ break;
case "^9(\d{7})$":
$action_data = "sofia/gateway/".$gateway."/1".$default_area_code."\$1";
$label = "dial 9, 7 digits";
- $abbrv = "9.7d";
+ $abbrv = "9.7d";
break;
case "^9(\d{10})$":
$action_data = "sofia/gateway/".$gateway."/\$1";
@@ -194,7 +194,7 @@ if ($_POST) {
$label = $dialplan_expression;
$abbrv = $dialplan_expression;
}
-
+
$dialplanincludeid = guid();
$ent['dialplanincludeid'] = $dialplanincludeid;
$ent['extensionname'] = $gateway.".".$abbrv;
@@ -295,7 +295,7 @@ function show_advanced_config() {
<td class="tabcont" >
- <table width="100%" border="0" cellpadding="6" cellspacing="0">
+ <table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td><p><span class="vexpl"><span class="red"><strong>Gateway Setup<br>
</strong></span>
@@ -305,69 +305,69 @@ function show_advanced_config() {
</tr>
</table>
<br />
-
+
<form action="freeswitch_gateways_edit.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="22%" valign="top" class="vncellreq">Gateway</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="gateway" type="text" class="formfld" id="gateway" size="40" value="<?=htmlspecialchars($pconfig['gateway']);?>">
<br><span class="vexpl">Enter the gateway name here.<br></span>
</td>
- </tr>
+ </tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Username</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="username" type="text" class="formfld" id="username" size="40" value="<?=htmlspecialchars($pconfig['username']);?>">
<br><span class="vexpl">Enter the username here.<br></span>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Password</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="password" type="password" class="formfld" id="password" size="40" value="<?=htmlspecialchars($pconfig['password']);?>">
<br><span class="vexpl">Enter the password here.<br></span>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">From-user</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="from-user" type="text" class="formfld" id="from-user" size="40" value="<?=htmlspecialchars($pconfig['from-user']);?>">
<br><span class="vexpl">Enter the from-user here.<br></span>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">From-domain</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="from-domain" type="text" class="formfld" id="from-domain" size="40" value="<?=htmlspecialchars($pconfig['from-domain']);?>">
<br><span class="vexpl">Enter the from-domain here.<br></span>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Proxy</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="proxy" type="text" class="formfld" id="proxy" size="40" value="<?=htmlspecialchars($pconfig['proxy']);?>">
<br><span class="vexpl">Enter the proxy here.<br></span>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Realm</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="realm" type="text" class="formfld" id="realm" size="40" value="<?=htmlspecialchars($pconfig['realm']);?>">
<br><span class="vexpl">Enter the realm here.<br></span>
</td>
- </tr>
+ </tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Expire-seconds</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="expire-seconds" type="text" class="formfld" id="expire-seconds" size="40" value="<?=htmlspecialchars($pconfig['expire-seconds']);?>">
<br><span class="vexpl">Enter the expire-seconds here. Example: 600<br></span>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Register</td>
- <td width="78%" class="vtable">
- <?php
+ <td width="78%" class="vtable">
+ <?php
echo " <select name='register' class='formfld'>\n";
echo " <option></option>\n";
switch (htmlspecialchars($pconfig['register'])) {
@@ -385,32 +385,32 @@ function show_advanced_config() {
echo " <option value='false'>false</option>\n";
}
echo " </select>\n";
- ?>
+ ?>
Choose whether to register.
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Retry-seconds</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="retry-seconds" type="text" class="formfld" id="retry-seconds" size="40" value="<?=htmlspecialchars($pconfig['retry-seconds']);?>">
<br> <span class="vexpl">Enter the retry_seconds here. Example: 30<br></span>
</td>
- </tr>
-
+ </tr>
+
<tr>
<td width="22%" valign="top" class="vncellreq">Context</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="context" type="text" class="formfld" id="context" size="40" value="<?=htmlspecialchars($pconfig['context']);?>">
<br> <span class="vexpl">Enter the context here. Example: public<br></span>
</td>
- </tr>
+ </tr>
</table>
<div id="showadvancedbox">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="22%" valign="top" class="vncell">Show Advanced</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input type="button" onClick="show_advanced_config()" value="Advanced"></input></a>
</td>
</tr>
@@ -420,8 +420,8 @@ function show_advanced_config() {
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="22%" valign="top" class="vncell">Register-transport</td>
- <td width="78%" class="vtable">
- <?php
+ <td width="78%" class="vtable">
+ <?php
echo " <select name='register-transport' class='formfld'>\n";
echo " <option></option>\n";
switch (htmlspecialchars($pconfig['register-transport'])) {
@@ -432,28 +432,28 @@ function show_advanced_config() {
case "tcp":
echo " <option value='udp'>udp</option>\n";
echo " <option value='tcp' selected='yes'>tcp</option>\n";
-
+
break;
default:
echo " <option value='udp'>udp</option>\n";
echo " <option value='tcp'>tcp</option>\n";
}
echo " </select>\n";
- ?>
- Choose whether to register-transport.
+ ?>
+ Choose whether to register-transport.
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">Extension</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="extension" type="text" class="formfld" id="extension" size="40" value="<?=htmlspecialchars($pconfig['extension']);?>">
<br> <span class="vexpl">Enter the extension here.<br></span>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">Caller-id-in-from</td>
- <td width="78%" class="vtable">
- <?php
+ <td width="78%" class="vtable">
+ <?php
echo " <select name='caller-id-in-from' class='formfld'>\n";
echo " <option></option>\n";
switch (htmlspecialchars($pconfig['caller-id-in-from'])) {
@@ -464,20 +464,20 @@ function show_advanced_config() {
case "false":
echo " <option value='true'>true</option>\n";
echo " <option value='false' selected='yes'>false</option>\n";
-
+
break;
default:
echo " <option value='true'>true</option>\n";
echo " <option value='false'>false</option>\n";
}
echo " </select>\n";
- ?>
+ ?>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">Supress-cng</td>
- <td width="78%" class="vtable">
- <?php
+ <td width="78%" class="vtable">
+ <?php
echo " <select name='supress-cng' class='formfld'>\n";
echo " <option></option>\n";
switch (htmlspecialchars($pconfig['supress-cng'])) {
@@ -488,25 +488,25 @@ function show_advanced_config() {
case "false":
echo " <option value='true'>true</option>\n";
echo " <option value='false' selected='yes'>false</option>\n";
-
+
break;
default:
echo " <option value='true'>true</option>\n";
echo " <option value='false'>false</option>\n";
}
echo " </select>\n";
- ?>
+ ?>
</td>
</tr>
</table>
-
+
</div>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="22%" valign="top" class="vncellreq">Enabled</td>
- <td width="78%" class="vtable">
- <?php
+ <td width="78%" class="vtable">
+ <?php
echo " <select name='enabled' class='formfld'>\n";
echo " <option></option>\n";
switch (htmlspecialchars($pconfig['enabled'])) {
@@ -524,10 +524,10 @@ function show_advanced_config() {
echo " <option value='false'>false</option>\n";
}
echo " </select>\n";
- ?>
+ ?>
</td>
</tr>
-
+
<tr>
<td width="22%" valign="top" class="vncell">Dialplan Expression</td>
<td width="78%" class="vtable">
@@ -536,7 +536,7 @@ function show_advanced_config() {
?>
<br>
<select name='dialplan_expression_select' id='dialplan_expression_select' onchange="document.getElementById('dialplan_expression').value += document.getElementById('dialplan_expression_select').value + '\n';" class='formfld'>
- <option></option>
+ <option></option>
<option value='^(\d{7})$'>7 digits local</option>
<option value='^(\d{10})$'>10 digits long distance</option>
<option value='^(\d{11})$'>11 digits long distance</option>
@@ -549,17 +549,17 @@ function show_advanced_config() {
<option value='^9(\d{4})$'>Dial 9 then 4 digits</option>
<option value='^9(\d{7})$'>Dial 9 then 7 digits</option>
<option value='^9(\d{10})$'>Dial 9 then 10 digits</option>
- <option value='^9(\d{11})$'>Dial 9 then 11 digits</option>
+ <option value='^9(\d{11})$'>Dial 9 then 11 digits</option>
</select>
<span class="vexpl">
<br />
- Shortcut to create the outbound dialplan entries for this Gateway. The entries are saved to and edited from the 'Dialplan' tab.
+ Shortcut to create the outbound dialplan entries for this Gateway. The entries are saved to and edited from the 'Dialplan' tab.
</span></td>
- </tr>
-
+ </tr>
+
<tr>
<td width="22%" valign="top" class="vncell">Gateway Description</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="description" type="text" class="formfld" id="description" size="40" value="<?=htmlspecialchars($pconfig['description']);?>">
<br> <span class="vexpl">Enter the description of the gateway here.</span></td>
</tr>