From c3cd4eada3e3b400ed43df10ca70003379758a9a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 1 Jan 2026 01:07:52 -0700 Subject: [PATCH] Set the default value of dialplan_detail_enabled to true --- app/dialplans/app_defaults.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/dialplans/app_defaults.php b/app/dialplans/app_defaults.php index f22e7d5281..c1d5330d1c 100644 --- a/app/dialplans/app_defaults.php +++ b/app/dialplans/app_defaults.php @@ -115,6 +115,15 @@ $sql = "update v_dialplan_details set dialplan_detail_data = 'recording_id=' where dialplan_detail_data = 'recording_id=true'\n"; $database->execute($sql); unset($sql); + + //dialplan cleanup + $sql = "delete from v_dialplans where dialplan_name is null and dialplan_enabled is null and dialplan_context is null;\n"; + $database->execute($sql); + + //set the default value of dialplan_detail_enabled to true + $sql = "update v_dialplan_details set dialplan_detail_enabled = 'true' where dialplan_detail_enabled is null"; + $database->execute($sql); + unset($sql); } //remove origination_callee_id_name from domain-variables dialplan