connectivityReport

public abstract Unit connectivityReport(ConnectivityReportOptions options, Function2<Exception, ConnectivityReport, Unit> callback)

Tests whether this device and network can carry a call, and reports why not.

Places a short test call over the exact route a real call takes, streaming real microphone audio to Vonage's media server and measuring what comes back. Nothing rings, and the test leg is hung up as soon as it ends. Needs a session and the RECORD_AUDIO permission, and cannot run during a call: a call that starts during the test stops it. The test leg may be billed as a few seconds of in-app voice.

callback gets an error only when the test could not run at all; every check that ran, failures included, is in the report. ConnectivityReport.toJson is the form to send to support.


public abstract ConnectivityReport connectivityReport(ConnectivityReportOptions options)