From 80580bb93196d3c26bb99dc4930477f7cba01f78 Mon Sep 17 00:00:00 2001 From: jacobbuscher-bt <111894981+jacobbuscher-bt@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:19:26 -0600 Subject: [PATCH] Fixing 'origination_callee_id_name' in domain variables dialplan (#6781) Updating app defaults for Dialplan -> Domain Variables to set origination_callee_id_name to match the caller_destination instead of the destination number so that if you call another tenant in the same Fusion instance without is_local enabled the caller_destination shows instead of the tenant's called extension. --------- Authored-by: Jacob Buscher --- app/dialplans/app_defaults.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dialplans/app_defaults.php b/app/dialplans/app_defaults.php index aad525283b..f2e95b86d1 100644 --- a/app/dialplans/app_defaults.php +++ b/app/dialplans/app_defaults.php @@ -137,11 +137,11 @@ $sql .= "and dialplan_detail_data like 'origination_callee_id_name%'; \n"; $database->execute($sql); - $sql = "update v_dialplans set dialplan_xml = REPLACE(dialplan_xml, '', ''), update_date = now() \n"; + $sql = "update v_dialplans set dialplan_xml = REPLACE(dialplan_xml, '', ''), update_date = now() \n"; $sql .= "where dialplan_uuid in (select dialplan_uuid from v_dialplans where dialplan_name = 'domain-variables' or dialplan_name = 'variables'); \n"; $database->execute($sql); - $sql = "update v_dialplans set dialplan_xml = REPLACE(dialplan_xml, '', ''), update_date = now() \n"; + $sql = "update v_dialplans set dialplan_xml = REPLACE(dialplan_xml, '', ''), update_date = now() \n"; $sql .= "where dialplan_uuid in (select dialplan_uuid from v_dialplans where dialplan_name = 'domain-variables' or dialplan_name = 'variables'); \n"; $database->execute($sql); }