Change limit_execute to limit for outbound routes and change db to hash to be more efficietn

This commit is contained in:
Mark Crane 2014-09-29 22:37:39 +00:00
parent 7c5377eb61
commit d5e3e8aef4
2 changed files with 3 additions and 3 deletions

View File

@ -363,7 +363,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$dialplan_detail_uuid', ";
$sql .= "'action', ";
$sql .= "'limit', ";
$sql .= "'db \${domain} inbound ".$limit." !USER_BUSY', ";
$sql .= "'hash \${domain} inbound ".$limit." !USER_BUSY', ";
$sql .= "'70' ";
$sql .= ")";
$db->exec(check_sql($sql));

View File

@ -457,8 +457,8 @@ else {
if (strlen($limit) > 0) {
$dialplan_detail_tag = 'action'; //condition, action, antiaction
$dialplan_detail_type = 'limit_execute';
$dialplan_detail_data = "db \${domain} outbound ".$limit." !USER_BUSY";
$dialplan_detail_type = 'limit';
$dialplan_detail_data = "hash \${domain} outbound ".$limit." !USER_BUSY";
$dialplan_detail_order = '050';
$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);