From d1ac931b53abe48eaedee16aff7eb81ffecb0d00 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 17 Jun 2018 16:31:59 -0600 Subject: [PATCH] Update app_defaults.php --- app/dialplans/app_defaults.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/dialplans/app_defaults.php b/app/dialplans/app_defaults.php index 6ac1e32096..8eb0c677b7 100644 --- a/app/dialplans/app_defaults.php +++ b/app/dialplans/app_defaults.php @@ -91,6 +91,13 @@ $sql = "update v_dialplans set dialplan_order = '890' where dialplan_order = '999' and dialplan_name = 'local_extension';\n"; $db->query($sql); unset($sql); + + //set empty strings to null + $sql = "update v_device_lines set outbound_proxy_primary = null where outbound_proxy_primary = '';\n"; + $db->query($sql); + $sql = "update v_device_lines set outbound_proxy_secondary = null where outbound_proxy_secondary = '';\n"; + $db->query($sql); + unset($sql); } //add xml for each dialplan where the dialplan xml is empty