Set the default value of dialplan_detail_enabled to true

This commit is contained in:
FusionPBX
2026-01-01 01:07:52 -07:00
committed by GitHub
parent afaa1f0e39
commit c3cd4eada3

View File

@@ -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