If last_sent_callee_id_number is set use it as the destination_number.
This commit is contained in:
parent
d91369b8f7
commit
d56b8ab6a1
|
|
@ -232,6 +232,11 @@ if (!class_exists('xml_cdr')) {
|
|||
$destination_number = urldecode($xml->variables->sip_to_user);
|
||||
}
|
||||
|
||||
//if last_sent_callee_id_number is set use it for the destination_number
|
||||
if (strlen($xml->variables->last_sent_callee_id_number) > 0) {
|
||||
$destination_number = urldecode($xml->variables->last_sent_callee_id_number);
|
||||
}
|
||||
|
||||
//get the caller id
|
||||
$caller_id_name = urldecode($xml->variables->effective_caller_id_name);
|
||||
$caller_id_number = urldecode($xml->variables->effective_caller_id_number);
|
||||
|
|
|
|||
|
|
@ -173,6 +173,11 @@
|
|||
}
|
||||
unset($x);
|
||||
|
||||
//if last_sent_callee_id_number is set use it for the destination_number
|
||||
if (strlen($xml->variables->last_sent_callee_id_number) > 0) {
|
||||
$database->fields['destination_number'] = urldecode($xml->variables->last_sent_callee_id_number);
|
||||
}
|
||||
|
||||
//store the call leg
|
||||
$database->fields['leg'] = $leg;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue