Outbound Route: Set effective_caller_id_name to use Emergency CID Name when creating 911 route.
This commit is contained in:
parent
79d5ff5287
commit
4db3c727ec
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue