From 4db3c727ece5c36f561e9119e2dceb4d27a9f53f Mon Sep 17 00:00:00 2001 From: reliberate Date: Mon, 29 Feb 2016 21:46:13 -0700 Subject: [PATCH] Outbound Route: Set effective_caller_id_name to use Emergency CID Name when creating 911 route. --- app/dialplan_outbound/dialplan_outbound_add.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php index 34261db7c3..bba0e20b56 100644 --- a/app/dialplan_outbound/dialplan_outbound_add.php +++ b/app/dialplan_outbound/dialplan_outbound_add.php @@ -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);