Use $event_socket instead of $esl

This commit is contained in:
FusionPBX
2024-04-18 16:14:00 -06:00
committed by GitHub
parent 7b6bdb6fb1
commit 07ff90f97c
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -75,10 +75,10 @@
if (count($calls) > 0) {
//setup the event socket connection
$esl = event_socket::create();
$event_socket = event_socket::create();
//execute hangup command
if ($esl->is_connected()) foreach ($calls as $call_uuid) {
if ($event_socket->is_connected()) foreach ($calls as $call_uuid) {
event_socket::async("uuid_kill ".$call_uuid);
}