mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-18 06:28:26 +00:00
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 <jacob@bfitec.com>
This commit is contained in:
@@ -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, '<action application=\"export\" data=\"origination_callee_id_name=\${destination_number}\"/>', ''), update_date = now() \n";
|
||||
$sql = "update v_dialplans set dialplan_xml = REPLACE(dialplan_xml, '<action application=\"export\" data=\"origination_callee_id_name=\${caller_destination}\"/>', ''), 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, '<action application=\"export\" data=\"origination_callee_id_name=\${destination_number}\" inline=\"true\"/>', ''), update_date = now() \n";
|
||||
$sql = "update v_dialplans set dialplan_xml = REPLACE(dialplan_xml, '<action application=\"export\" data=\"origination_callee_id_name=\${caller_destination}\" inline=\"true\"/>', ''), 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user