mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use the queue uuid for the cc_queue
This commit is contained in:
@@ -372,14 +372,6 @@ if (!class_exists('xml_cdr')) {
|
||||
$this->array[$key]['cc_side'] = urldecode($xml->variables->cc_side);
|
||||
$this->array[$key]['cc_member_uuid'] = urldecode($xml->variables->cc_member_uuid);
|
||||
$this->array[$key]['cc_queue_joined_epoch'] = urldecode($xml->variables->cc_queue_joined_epoch);
|
||||
//remove the @domain from the queue name
|
||||
$cc_queue = urldecode($xml->variables->cc_queue);
|
||||
if (strpos($cc_queue, "@")) {
|
||||
$this->array[$key]['cc_queue'] = substr($cc_queue, 0, strpos($cc_queue, "@"));
|
||||
}
|
||||
else {
|
||||
$this->array[$key]['cc_queue'] = $cc_queue;
|
||||
}
|
||||
$this->array[$key]['cc_member_session_uuid'] = urldecode($xml->variables->cc_member_session_uuid);
|
||||
$this->array[$key]['cc_agent_uuid'] = urldecode($xml->variables->cc_agent_uuid);
|
||||
$this->array[$key]['cc_agent'] = urldecode($xml->variables->cc_agent);
|
||||
@@ -394,6 +386,9 @@ if (!class_exists('xml_cdr')) {
|
||||
if (urldecode($xml->variables->cc_side) == 'agent') {
|
||||
$this->array[$key]['direction'] = 'inbound';
|
||||
}
|
||||
if (is_uuid(urldecode($xml->variables->call_center_queue_uuid))) {
|
||||
$this->array[$key]['cc_queue'] = urldecode($xml->variables->call_center_queue_uuid;
|
||||
}
|
||||
|
||||
//app info
|
||||
$this->array[$key]['last_app'] = urldecode($xml->variables->last_app);
|
||||
|
||||
Reference in New Issue
Block a user