Fix limit on inbound and outbound routes.

This commit is contained in:
Mark Crane
2015-03-03 18:48:08 +00:00
parent c027f0e4f5
commit 68752fefff
2 changed files with 7 additions and 7 deletions

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2013
Portions created by the Initial Developer are Copyright (C) 2008-2015
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -389,7 +389,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$dialplan_detail_uuid', ";
$sql .= "'action', ";
$sql .= "'limit', ";
$sql .= "'hash \${domain} inbound ".$limit." !USER_BUSY', ";
$sql .= "'hash \${domain_name} inbound ".$limit." !USER_BUSY', ";
$sql .= "'65' ";
$sql .= ")";
$db->exec(check_sql($sql));

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2014
Portions created by the Initial Developer are Copyright (C) 2008-2015
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -466,7 +466,7 @@ else {
if (strlen($limit) > 0) {
$dialplan_detail_tag = 'action'; //condition, action, antiaction
$dialplan_detail_type = 'limit';
$dialplan_detail_data = "hash \${domain} outbound ".$limit." !USER_BUSY";
$dialplan_detail_data = "hash \${domain_name} outbound ".$limit." !USER_BUSY";
$dialplan_detail_order = '055';
$dialplan_detail_group = '';
dialplan_detail_add($_SESSION['domain_uuid'], $dialplan_uuid, $dialplan_detail_tag, $dialplan_detail_order, $dialplan_detail_group, $dialplan_detail_type, $dialplan_detail_data);
@@ -695,7 +695,7 @@ function type_onchange(dialplan_detail_type) {
echo " <optgroup label='".$text['label-add-options']."'>";
echo " <option value=\"enum\">enum</option>\n";
echo " <option value=\"freetdm\">freetdm</option>\n";
echo " <option value=\"transfer:\$1 XML \${domain}\">transfer</option>\n";
echo " <option value=\"transfer:\$1 XML \${domain_name}\">transfer</option>\n";
echo " <option value=\"xmpp\">xmpp</option>\n";
echo "</optgroup>";
echo "</select>\n";
@@ -755,7 +755,7 @@ function type_onchange(dialplan_detail_type) {
echo "<optgroup label='".$text['label-add-options']."'>";
echo " <option value=\"enum\">enum</option>\n";
echo " <option value=\"freetdm\">freetdm</option>\n";
echo " <option value=\"transfer:\$1 XML \${domain}\">transfer</option>\n";
echo " <option value=\"transfer:\$1 XML \${domain_name}\">transfer</option>\n";
echo " <option value=\"xmpp\">xmpp</option>\n";
echo "</optgroup>";
echo "</select>\n";
@@ -815,7 +815,7 @@ function type_onchange(dialplan_detail_type) {
echo "<optgroup label='".$text['label-add-options']."'>";
echo " <option value=\"enum\">enum</option>\n";
echo " <option value=\"freetdm\">freetdm</option>\n";
echo " <option value=\"transfer:\$1 XML \${domain}\">transfer</option>\n";
echo " <option value=\"transfer:\$1 XML \${domain_name}\">transfer</option>\n";
echo " <option value=\"xmpp\">xmpp</option>\n";
echo "</optgroup>";
echo "</select>\n";