If caller_destination is not set use dialed_user

This commit is contained in:
FusionPBX 2022-03-15 14:50:28 -06:00 committed by GitHub
parent af994de554
commit 3336e1420a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -369,6 +369,9 @@ if (!class_exists('xml_cdr')) {
if (isset($xml->variables->sip_h_caller_destination) ) {
$caller_destination = urldecode($xml->variables->sip_h_caller_destination);
}
if (!isset($caller_destination) && isset($xml->variables->dialed_user)) {
$caller_destination = urldecode($xml->variables->dialed_user);
}
//set missed calls
if (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) {