I suggest checking your web server's log. Each time a user connects to the chat, the token_request.xxx script is executed and a token is generated. The media server will then send a request to token_verify.xxx which checks for the generated token. If something goes wrong with the token generation (the token_request.xxx script fails to generate a token), the check will fail and the media server will drop the connection.

Checking the web server's error log should give you a clue about what's happening.