mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 10:56:31 +00:00
Unset the event socket handles.
This commit is contained in:
@@ -39,6 +39,7 @@ if (!class_exists('presence')) {
|
||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||
$cmd = 'show calls as json';
|
||||
$json = event_socket_request($fp, 'api '.$cmd);
|
||||
unset($fp);
|
||||
$call_array = json_decode($json, true);
|
||||
if (isset($call_array['rows'])) {
|
||||
$x = 0;
|
||||
@@ -67,6 +68,7 @@ if (!class_exists('presence')) {
|
||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||
$cmd = 'show calls as json';
|
||||
$json = event_socket_request($fp, 'api '.$cmd);
|
||||
unset($fp);
|
||||
$call_array = json_decode($json, true);
|
||||
if (isset($call_array['rows'])) {
|
||||
$x = 0;
|
||||
|
||||
Reference in New Issue
Block a user