Skip to main content

Rolling out call token checks

Covers CALL_TOKEN_MODE (customer side) and AGENT_SOCKET_CALL_TOKEN_MODE (agent side). Both are set per tenant and apply without a restart.

What to watch in the DMZ logs

  • Customer side: warning lines starting with CALL_TOKEN observed (metric ecvnet.call_token.customer_unverified). Each line names the endpoint and the reason.
  • Agent side: warning lines starting with AGENT_SOCKET_CALL_TOKEN observed (metric ecvnet.sockets.agent.call_token_unverified). Each line names the agent.

Lines are written at most once a minute per endpoint and reason, with the number of suppressed cases.

Agent side

  1. Update every WDE and EDC to a version that sends the call token.
  2. Keep AGENT_SOCKET_CALL_TOKEN_MODE on Observe.
  3. Watch the logs until no AGENT_SOCKET_CALL_TOKEN observed lines appear. The agent name shows which clients are still old.
  4. Set Enforce. Actions without a valid token are refused and the client is told so.

Customer side

  1. Update the mobile apps (SDK) and every integration that calls the call service, so they send the token they get from the dial.
  2. Keep CALL_TOKEN_MODE on Observe and watch the CALL_TOKEN observed lines.
  3. Wait until old app versions are no longer in use.
  4. Set Enforce. Requests without a valid token get HTTP 401 (CALL_TOKEN_MISSING or CALL_TOKEN_INVALID); sockets are closed.

Notes

  • CALL_TOKEN_TTL_HOURS must be longer than your longest call, transfers included.
  • Turn AGENT_TOKEN_DISABLED off before the rollout. While it is on, the agent check is off and customer Enforce is incomplete.
  • A DMZ server uses the global value for a tenant until it has read that tenant's value once.
  • Roll back by setting the mode to Observe.