Update dialplan.php

Fix the dialplan context on the import.
This commit is contained in:
FusionPBX 2016-07-01 14:33:55 -06:00 committed by GitHub
parent a2f42e6328
commit bef9055497
1 changed files with 2 additions and 1 deletions

View File

@ -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") {