Fix. Eavesdrop by operator_panel with extension with number-aliases

This commit is contained in:
Alexey Melnichuk
2015-08-17 16:46:53 +04:00
parent f978a397fb
commit 34beaff9e3
3 changed files with 16 additions and 4 deletions
@@ -85,6 +85,7 @@ function get_call_activity() {
$array[$x]["call_uuid"] = null;
$array[$x]["sent_callee_name"] = null;
$array[$x]["sent_callee_num"] = null;
$array[$x]["destination"] = null;
//add the active call details
$found = false;
@@ -134,6 +135,7 @@ function get_call_activity() {
$array[$x]["call_uuid"] = $field['call_uuid'];
$array[$x]["sent_callee_name"] = $field['sent_callee_name'];
$array[$x]["sent_callee_num"] = $field['sent_callee_num'];
$array[$x]["destination"] = $user;
//calculate and set the call length
$call_length_seconds = time() - $array[$x]["created_epoch"];