mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-07 04:03:49 +00:00
Get the call_center_queue_uuid from the channel variables.
This commit is contained in:
@@ -180,6 +180,7 @@
|
||||
$database->fields['cc_queue_joined_epoch'] = urldecode($xml->variables->cc_queue_joined_epoch);
|
||||
$database->fields['cc_member_session_uuid'] = urldecode($xml->variables->cc_member_session_uuid);
|
||||
$database->fields['cc_agent_uuid'] = urldecode($xml->variables->cc_agent_uuid);
|
||||
$database->fields['cc_queue'] = urldecode($xml->variables->cc_queue);
|
||||
$database->fields['cc_agent'] = urldecode($xml->variables->cc_agent);
|
||||
$database->fields['cc_agent_type'] = urldecode($xml->variables->cc_agent_type);
|
||||
$database->fields['cc_agent_bridged'] = urldecode($xml->variables->cc_agent_bridged);
|
||||
@@ -192,20 +193,8 @@
|
||||
if (urldecode($xml->variables->cc_side) == 'agent') {
|
||||
$database->fields['direction'] = 'inbound';
|
||||
}
|
||||
if (strlen($xml->variables->cc_queue) > 0) {
|
||||
$cc_queue = urldecode($xml->variables->cc_queue);
|
||||
$cc_queue_array = explode('@', $cc_queue);
|
||||
$cc_queue_extension = $cc_queue_array[0];
|
||||
if (is_numeric($cc_queue_extension)) {
|
||||
$sql = "select call_center_queue_uuid from v_call_center_queues ";
|
||||
$sql .= "where domain_uuid = :domain_uuid ";
|
||||
$sql .= "and queue_extension = :queue_extension ";
|
||||
$parameters['domain_uuid'] = urldecode($xml->variables->domain_uuid);
|
||||
$parameters['queue_extension'] = $cc_queue_extension;
|
||||
$database = new database;
|
||||
$database->fields['cc_queue'] = $database->select($sql, $parameters, 'column');
|
||||
unset($parameters);
|
||||
}
|
||||
if (is_uuid($xml->variables->call_center_queue_uuid)) {
|
||||
$this->array[$key]['call_center_queue_uuid'] = urldecode($xml->variables->call_center_queue_uuid);
|
||||
}
|
||||
|
||||
//app info
|
||||
|
||||
Reference in New Issue
Block a user