diff --git a/app/basic_operator_panel/resources/content.php b/app/basic_operator_panel/resources/content.php index fa35a1d8b0..397bce9a88 100644 --- a/app/basic_operator_panel/resources/content.php +++ b/app/basic_operator_panel/resources/content.php @@ -189,12 +189,18 @@ if (is_array($activity)) foreach ($activity as $extension => $ext) { else if ($ext['callstate'] == 'ACTIVE' && $ext['direction'] == 'outbound') { $ext_state = 'active'; } + else if ($ext['callstate'] == 'HELD' && $ext['direction'] == 'outbound') { + $ext_state = 'held'; + } else if ($ext['callstate'] == 'RING_WAIT' && $ext['direction'] == 'outbound') { $ext_state = 'ringing'; } else if ($ext['callstate'] == 'ACTIVE' && $ext['direction'] == 'inbound') { $ext_state = 'active'; } + else if ($ext['callstate'] == 'HELD' && $ext['direction'] == 'inbound') { + $ext_state = 'held'; + } if (!$format_number) { $call_name = 'System'; $call_number = $ext['dest']; @@ -227,6 +233,12 @@ if (is_array($activity)) foreach ($activity as $extension => $ext) { else if ($ext['state'] == 'CS_EXCHANGE_MEDIA' && $ext['callstate'] == 'ACTIVE' && $ext['direction'] == 'outbound') { $ext_state = 'active'; } + else if ($ext['state'] == 'CS_CONSUME_MEDIA' && $ext['callstate'] == 'HELD' && $ext['direction'] == 'outbound') { + $ext_state = 'held'; + } + else if ($ext['state'] == 'CS_EXCHANGE_MEDIA' && $ext['callstate'] == 'HELD' && $ext['direction'] == 'outbound') { + $ext_state = 'held'; + } $dir_icon = 'inbound'; $call_name = $activity[$ext['cid_num']]['effective_caller_id_name']; $call_number = format_phone($ext['cid_num']);