Update call_center.php
Change session context to domain_name.
This commit is contained in:
parent
26a316a295
commit
7aa65122a0
|
|
@ -109,7 +109,7 @@
|
||||||
$dialplan["domain_uuid"] = $this->domain_uuid;
|
$dialplan["domain_uuid"] = $this->domain_uuid;
|
||||||
$dialplan["dialplan_name"] = ($this->queue_name != '') ? $this->queue_name : format_phone($this->destination_number);
|
$dialplan["dialplan_name"] = ($this->queue_name != '') ? $this->queue_name : format_phone($this->destination_number);
|
||||||
$dialplan["dialplan_number"] = $this->destination_number;
|
$dialplan["dialplan_number"] = $this->destination_number;
|
||||||
$dialplan["dialplan_context"] = $_SESSION['context'];
|
$dialplan["dialplan_context"] = $_SESSION['domain_name'];
|
||||||
$dialplan["dialplan_continue"] = "false";
|
$dialplan["dialplan_continue"] = "false";
|
||||||
$dialplan["dialplan_order"] = "210";
|
$dialplan["dialplan_order"] = "210";
|
||||||
$dialplan["dialplan_enabled"] = "true";
|
$dialplan["dialplan_enabled"] = "true";
|
||||||
|
|
@ -267,7 +267,7 @@
|
||||||
|
|
||||||
//clear the cache
|
//clear the cache
|
||||||
$cache = new cache;
|
$cache = new cache;
|
||||||
$cache->delete("dialplan:".$_SESSION['context']);
|
$cache->delete("dialplan:".$_SESSION['domain_name']);
|
||||||
|
|
||||||
//return the dialplan_uuid
|
//return the dialplan_uuid
|
||||||
return $dialplan_response;
|
return $dialplan_response;
|
||||||
|
|
@ -366,7 +366,7 @@
|
||||||
|
|
||||||
//clear the cache
|
//clear the cache
|
||||||
$cache = new cache;
|
$cache = new cache;
|
||||||
$cache->delete("dialplan:".$_SESSION["context"]);
|
$cache->delete("dialplan:".$_SESSION["domain_name"]);
|
||||||
remove_config_from_cache('configuration:callcenter.conf');
|
remove_config_from_cache('configuration:callcenter.conf');
|
||||||
|
|
||||||
//synchronize configuration
|
//synchronize configuration
|
||||||
|
|
@ -592,7 +592,7 @@
|
||||||
|
|
||||||
//clear the cache
|
//clear the cache
|
||||||
$cache = new cache;
|
$cache = new cache;
|
||||||
$cache->delete("dialplan:".$_SESSION["context"]);
|
$cache->delete("dialplan:".$_SESSION["domain_name"]);
|
||||||
|
|
||||||
//set message
|
//set message
|
||||||
message::add($text['message-copy']);
|
message::add($text['message-copy']);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue