From c60f2e492f35e1004166844ad6549abce435ad12 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 14 Dec 2020 18:00:04 -0700 Subject: [PATCH] After importing the dialplans generate the dialplan xml. --- app/dialplans/resources/classes/dialplan.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/dialplans/resources/classes/dialplan.php b/app/dialplans/resources/classes/dialplan.php index f12410ef04..afda3d838c 100644 --- a/app/dialplans/resources/classes/dialplan.php +++ b/app/dialplans/resources/classes/dialplan.php @@ -1,3 +1,4 @@ + delete('dialplan_edit', 'temp'); $p->delete('dialplan_detail_add', 'temp'); $p->delete('dialplan_detail_edit', 'temp'); + + //add dialplan xml when the dialplan_xml is null + $this->source = 'details'; + $this->destination = 'database'; + $this->context = $domain['domain_name']; + $this->is_empty = 'dialplan_xml'; + $this->xml(); + } //foreach domains }