diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php index 790366da5b..736e257efb 100644 --- a/app/calls_active/calls_active_inc.php +++ b/app/calls_active/calls_active_inc.php @@ -52,10 +52,10 @@ $switch_cmd = 'show channels as json'; //create the event socket connection - $esl = event_socket::create(); + $event_socket = event_socket::create(); //send the event socket command and get the array - if ($esl->is_connected()) { + if ($event_socket->is_connected()) { $json = trim(event_socket::api($switch_cmd)); $results = json_decode($json, "true"); } @@ -90,7 +90,7 @@ //if the connnection is available then run it and return the results - if (!$esl) { + if (!$event_socket) { $msg = "
".$text['confirm-socket']."
"; echo "
\n"; diff --git a/app/calls_active/calls_exec.php b/app/calls_active/calls_exec.php index fb469d1411..db1cf63e6d 100644 --- a/app/calls_active/calls_exec.php +++ b/app/calls_active/calls_exec.php @@ -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); }