mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Outbound Route: Set effective_caller_id_name to use Emergency CID Name when creating 911 route.
This commit is contained in:
@@ -420,7 +420,12 @@ else {
|
||||
|
||||
$dialplan_detail_tag = 'action'; //condition, action, antiaction
|
||||
$dialplan_detail_type = 'set';
|
||||
$dialplan_detail_data = 'effective_caller_id_name=${outbound_caller_id_name}';
|
||||
if ($dialplan_expression == '^(911)$') {
|
||||
$dialplan_detail_data = 'effective_caller_id_name=${emergency_caller_id_name}';
|
||||
}
|
||||
else {
|
||||
$dialplan_detail_data = 'effective_caller_id_name=${outbound_caller_id_name}';
|
||||
}
|
||||
$dialplan_detail_order = '030';
|
||||
$dialplan_detail_group = '0';
|
||||
dialplan_detail_add($_SESSION['domain_uuid'], $dialplan_uuid, $dialplan_detail_tag, $dialplan_detail_order, $dialplan_detail_group, $dialplan_detail_type, $dialplan_detail_data);
|
||||
|
||||
Reference in New Issue
Block a user