#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/select.h>
+#include <unistd.h> // usleep, close
#include <csignal>
#include <cstdlib>
#include "common.h"
#include "stg_locker.h"
#include "tariff.h"
-#include "../../../settings.h"
-#include "../../../user_property.h"
+#include "user_property.h"
+#include "settings.h"
extern volatile const time_t stgTime;
iaUser->phase.UpdateTime();
iaUser->lastSendAlive = iaUser->phase.GetTime();
- if (iaUser->user->Authorize(sip, "", enabledDirs, this) == 0)
+ if (iaUser->user->Authorize(sip, enabledDirs, this) == 0)
{
iaUser->phase.SetPhase3();
printfd(__FILE__, "Phase changed from 2 to 3. Reason: CONN_ACK_6\n");
{
iaUser->phase.UpdateTime();
iaUser->lastSendAlive = iaUser->phase.GetTime();
- if (iaUser->user->Authorize(sip, "", enabledDirs, this) == 0)
+ if (iaUser->user->Authorize(sip, enabledDirs, this) == 0)
{
iaUser->phase.SetPhase3();
printfd(__FILE__, "Phase changed from 2 to 3. Reason: CONN_ACK_8\n");