Change limit_execute to limit for outbound routes and change db to hash to be more efficietn
This commit is contained in:
@@ -363,7 +363,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
$sql .= "'$dialplan_detail_uuid', ";
|
$sql .= "'$dialplan_detail_uuid', ";
|
||||||
$sql .= "'action', ";
|
$sql .= "'action', ";
|
||||||
$sql .= "'limit', ";
|
$sql .= "'limit', ";
|
||||||
$sql .= "'db \${domain} inbound ".$limit." !USER_BUSY', ";
|
$sql .= "'hash \${domain} inbound ".$limit." !USER_BUSY', ";
|
||||||
$sql .= "'70' ";
|
$sql .= "'70' ";
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
|
|||||||
@@ -457,8 +457,8 @@ else {
|
|||||||
|
|
||||||
if (strlen($limit) > 0) {
|
if (strlen($limit) > 0) {
|
||||||
$dialplan_detail_tag = 'action'; //condition, action, antiaction
|
$dialplan_detail_tag = 'action'; //condition, action, antiaction
|
||||||
$dialplan_detail_type = 'limit_execute';
|
$dialplan_detail_type = 'limit';
|
||||||
$dialplan_detail_data = "db \${domain} outbound ".$limit." !USER_BUSY";
|
$dialplan_detail_data = "hash \${domain} outbound ".$limit." !USER_BUSY";
|
||||||
$dialplan_detail_order = '050';
|
$dialplan_detail_order = '050';
|
||||||
$dialplan_detail_group = '';
|
$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);
|
dialplan_detail_add($_SESSION['domain_uuid'], $dialplan_uuid, $dialplan_detail_tag, $dialplan_detail_order, $dialplan_detail_group, $dialplan_detail_type, $dialplan_detail_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user