mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update dialplan.php
Fix the dialplan context on the import.
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user