diff --git a/app/dialplan/resources/classes/dialplan.php b/app/dialplan/resources/classes/dialplan.php index fd44339d66..e56bfa4a6d 100644 --- a/app/dialplan/resources/classes/dialplan.php +++ b/app/dialplan/resources/classes/dialplan.php @@ -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") {