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:
frytimo
2025-07-11 13:57:54 -03:00
committed by GitHub
parent 006dbb88d6
commit 91efee3b27
3 changed files with 9 additions and 28 deletions

View File

@@ -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);