Note: some earlier versions of the Vivox SDK use a value of 5020 for "RTP Timeout" instead.
Scenario
These errors usually occur when a Vivox request or asynchronous method times out due to network issues. The duration before receiving the timeout result can vary depending on the type of operation, client SDK version, or Vivox server configuration.
Resolution
The recommended course of action when encountering this status code is to retry the operation in a controlled manner. For instance, you might perform automated retries using an exponential backoff technique where the first attempt is immediate, then after 5-10 seconds, then 10-20 seconds, and so forth, for a limited number of retry attempts.
You could instead allow for user-initiated retries with a UI button or similar, as long as precautions are taken to limit its use to prevent flooding the server with requests.
Before each retry attempt is made, it is recommended to first check for an active internet connection or else skip the attempt. Just as the initial timeout error can occur on outstanding requests if network access is lost before completion, further timeouts can continue on retried requests until the network is restored.