Skip to main content
The SDK reports problems in two ways:
  • Exceptions from the method you called, for mistakes you can fix in code, such as a missing argument or calling with no call in progress.
  • Error events on client.errorEvents, for things that fail later or in the background, such as a refused registration or a dropped network.

Exceptions

Error codes

ErrorEvent.code, and VobizException.code where it applies. Codes with a constant are on VobizErrorCode.

Access-token errors

When the registrar refuses an access token, VobizAccessTokenException.tokenError holds its reason: VobizAccessTokenException.errorName(code) returns the name for a code.

SIP codes on failed calls

When a call fails, CallEvent.sipCode holds the SIP status and reason the far end’s explanation. For the carrier’s own response, look up the call in your call detail records.

Troubleshooting

Turn on SdkConfig(debug: true) to see the SDK’s log, including the first line of every SIP request and response.

Next steps