Update dialplan.php
Fix the dialplan context on the import.
This commit is contained in:
parent
a2f42e6328
commit
bef9055497
|
|
@ -315,10 +315,11 @@ include "root.php";
|
|||
$this->dialplan_uuid = uuid();
|
||||
$this->dialplan_name = $dialplan['extension']['@attributes']['name'];
|
||||
$this->dialplan_number = $dialplan['extension']['@attributes']['number'];
|
||||
$this->dialplan_context = $dialplan['@attributes']['name'];
|
||||
$this->dialplan_context = $row['domain_name'];
|
||||
if (strlen($dialplan['extension']['@attributes']['global']) > 0) {
|
||||
if ($dialplan['extension']['@attributes']['global'] == "true") {
|
||||
$this->domain_uuid = null;
|
||||
$this->dialplan_context = '${domain_name}';
|
||||
}
|
||||
}
|
||||
if ($this->display_type == "text") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue