mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix active calls eavesdrop (#7419)
* Remove old debug comments * Remove unused variable * Remove debug information * Fix eavesdrop missing domain_name * Remove extended debug information
This commit is contained in:
@@ -556,15 +556,15 @@ class active_calls_service extends service implements websocket_service_interfac
|
||||
$response['topic'] = $websocket_message->topic;
|
||||
$response['request_id'] = $websocket_message->request_id;
|
||||
|
||||
// Get the payload
|
||||
// Get the payload and domain from message
|
||||
$payload = $websocket_message->payload();
|
||||
$domain_name = $websocket_message->domain_name() ?? '';
|
||||
|
||||
// Get the eavesdrop information from the payload to send to the switch
|
||||
$uuid = $payload['unique_id'] ?? '';
|
||||
$origination_caller_id_name = $payload['origination_caller_id_name'] ?? '';
|
||||
$caller_caller_id_number = $payload['caller_caller_id_number'] ?? '';
|
||||
$origination_caller_contact = $payload['origination_caller_contact'] ?? '';
|
||||
$domain_name = $payload['domain_name'] ?? '';
|
||||
|
||||
$response['status_message'] = 'success';
|
||||
$response['status_code'] = 200;
|
||||
@@ -815,7 +815,7 @@ class active_calls_service extends service implements websocket_service_interfac
|
||||
return;
|
||||
}
|
||||
|
||||
$this->debug("Received message on websocket: $json_string (" . strlen($json_string) . " bytes)");
|
||||
$this->debug("Received message on websocket: (" . strlen($json_string) . " bytes)");
|
||||
|
||||
// Get the web socket message as an object
|
||||
$message = websocket_message::create_from_json_message($json_string);
|
||||
|
||||
Reference in New Issue
Block a user