Need to keep the caller ID prefix on the caller ID name.

This was needed to keep caller id prefix for the caller ID name so it shows up in the Call Detail Records.
This commit is contained in:
FusionPBX
2022-01-18 11:52:26 -07:00
committed by GitHub
parent a911086dd6
commit e16cc5e725

View File

@@ -303,7 +303,7 @@ if (!class_exists('xml_cdr')) {
$caller_id_number = urldecode($xml->variables->caller_id_number);
//if the call is outbound use the external caller ID
if (urldecode($xml->variables->call_direction) == 'outbound' && isset($xml->variables->effective_caller_id_name)) {
if (isset($xml->variables->effective_caller_id_name)) {
$caller_id_name = urldecode($xml->variables->effective_caller_id_name);
}
if (urldecode($xml->variables->call_direction) == 'outbound' && isset($xml->variables->effective_caller_id_number)) {