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(metricecvnet.call_token.customer_unverified). Each line names the endpoint and the reason. - Agent side: warning lines starting with
AGENT_SOCKET_CALL_TOKEN observed(metricecvnet.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
- Update every WDE and EDC to a version that sends the call token.
- Keep
AGENT_SOCKET_CALL_TOKEN_MODEon Observe. - Watch the logs until no
AGENT_SOCKET_CALL_TOKEN observedlines appear. The agent name shows which clients are still old. - Set Enforce. Actions without a valid token are refused and the client is told so.
Customer side
- Update the mobile apps (SDK) and every integration that calls the call service, so they send the token they get from the dial.
- Keep
CALL_TOKEN_MODEon Observe and watch theCALL_TOKEN observedlines. - Wait until old app versions are no longer in use.
- Set Enforce. Requests without a valid token get HTTP 401 (
CALL_TOKEN_MISSINGorCALL_TOKEN_INVALID); sockets are closed.
Notes
CALL_TOKEN_TTL_HOURSmust be longer than your longest call, transfers included.- Turn
AGENT_TOKEN_DISABLEDoff 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.
No comments to display
No comments to display