diff --git a/app/registrations/cmd.php b/app/registrations/cmd.php index a9cb979b61..e015c85e10 100644 --- a/app/registrations/cmd.php +++ b/app/registrations/cmd.php @@ -75,16 +75,15 @@ else { $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) { //prepare the command - if ($vendor == "grandstream") { - $command = "lua app.lua event_notify ".$cmd." ".$profile." ".$user." ".$vendor; + if ($cmd == "unregister") { + $command = "sofia profile ".$profile." flush_inbound_reg ".$user." reboot"; } else { - if ($cmd == "reboot") { - $command = "sofia profile ".$profile." flush_inbound_reg ".$user." reboot"; - } - if ($cmd == "check_sync") { - $command = "sofia profile ".$profile." check_sync ".$user; - } + $command = "lua app.lua event_notify ".$cmd." ".$profile." ".$user." ".$vendor; + + //if ($cmd == "check_sync") { + // $command = "sofia profile ".$profile." check_sync ".$user; + //} } //send the command $response = event_socket_request($fp, "api ".$command); diff --git a/app/registrations/status_registrations_inc.php b/app/registrations/status_registrations_inc.php index 12548edb7b..d69e1c233a 100644 --- a/app/registrations/status_registrations_inc.php +++ b/app/registrations/status_registrations_inc.php @@ -161,9 +161,9 @@ require_once "resources/check_auth.php"; echo "