From cb96c4a848dfb8766985b6aab46fcb8c97f87be7 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 28 Oct 2022 09:10:54 -0600 Subject: [PATCH] Inbound routes use destination sip_req_user This setting allows adjusting the variable that is used for match the inbound number. For many years inbound routes have used destination_number as the variable to match inbound calls. When SIP diversion header is used the destination_number is not always dependable. The variable sip_to_user is more dependable but still fails with how some providers have implemented the SIP diversion header. It appears the sip_req_user is the seems to be the most dependable. --- app/dialplans/app_config.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/dialplans/app_config.php b/app/dialplans/app_config.php index 74194444b2..56a1117188 100644 --- a/app/dialplans/app_config.php +++ b/app/dialplans/app_config.php @@ -47,6 +47,17 @@ $apps[$x]['destinations'][$y]['select_label'] = "\${dialplan_name} \${description}"; $y++; + //default settings + $y = 0; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "d3c5a59d-e6c0-4ded-ac79-9a7fcd9e1269"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "dialplan"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "destination"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "text"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "\${sip_req_user}"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Options: destination_number, \${sip_to_user}, \${sip_req_user}"; + $y++; + //permission details $y=0; $apps[$x]['permissions'][$y]['name'] = "dialplan_view"; @@ -282,4 +293,4 @@ $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; -?> \ No newline at end of file +?>