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.
This commit is contained in:
FusionPBX 2022-10-28 09:10:54 -06:00 committed by GitHub
parent b620b36f28
commit cb96c4a848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -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'] = "";
?>
?>