SIGN UP

VoxImplantCallback

Deprecated

Methods

void onCallAudioStarted(String callId)

Call audio started. You should stop playing progress tone when event is received

Parameters

  • callId:

    String

    id of call

onCallConnected

Deprecated
void onCallConnected(String callId, Map<String,String> headers)

Call established

Parameters

  • callId:

    String

    id of call

  • headers:

    Map<String,String>

    Optional headers passed with event

void onCallDisconnected(String callId, Map<String,String> headers, boolean answeredElsewhere)

Call terminated

Parameters

  • callId:

    String

    id of call

  • headers:

    Map<String,String>

    Optional headers passed with event

  • answeredElsewhere:

    boolean

    Indicate if the call was answered on other peer

onCallFailed

Deprecated
void onCallFailed(String callId, int code, String reason, Map<String,String> headers)

Outgoing call failed

Parameters

  • callId:

    String

    id of call

  • code:

    int

    Status code

  • reason:

    String

    Status message

  • headers:

    Map<String,String>

    Optional headers passed with event

onCallRinging

Deprecated
void onCallRinging(String callId, Map<String,String> headers)

Call ringing. You should start playing call progress tone now

Parameters

  • callId:

    String

    id of call

  • headers:

    Map<String,String>

    Optional headers passed with event

void onConnectionClosed()

Connection with cloud closed

void onConnectionFailedWithError(String reason)

Connection with cloud failed

Parameters

  • reason:

    String

    Error message

void onConnectionSuccessful()

Connection with cloud established

onIncomingCall

Deprecated
void onIncomingCall(String callId, String from, String displayName, boolean videoCall, Map<String,String> headers)

New incoming call received by SDK

Parameters

  • callId:

    String

    id of call

  • from:

    String

    SIP URI of caller

  • displayName:

    String

    Displayed name of caller

  • videoCall:

    boolean

    video call flag

  • headers:

    Map<String,String>

    Optional headers passed with event

onLoginFailed

Deprecated
void onLoginFailed(VoxImplantClient.LoginFailureReason reason)

Invoked when login process failed

Parameters

  • reason:

    VoxImplantClient.LoginFailureReason

    Failure reason

void onLoginSuccessful(String displayName, VoxImplantCallback.LoginTokens loginTokens)

Invoked when login process finished successfully.

Parameters

  • displayName:

    String

    Display name of logged in user

  • loginTokens:

    VoxImplantCallback.LoginTokens

    Login tokens that can be used to login using access token

void onMessageReceivedInCall(String callId, String text)

Instant message received during a call

Parameters

  • callId:

    String

    id of call

  • text:

    String

    Message text

void onNetStatsReceived(String callId, VoxImplantCallback.NetworkInfo stats)

Event dispatched when packet loss data received from Voximplant servers

Parameters

  • callId:

    String

    id of call

  • stats:

    VoxImplantCallback.NetworkInfo

    NetworkInfo

void onOneTimeKeyGenerated(String key)

Returns one time key generated by the login server as a result of requestOneTimeLoginKey.

Parameters

  • key:

    String

    One time key

void onRefreshTokenFailed(Integer reason)

Invoked when refresh of login tokens failed

Parameters

  • reason:

    Integer

    Failure reason

void onRefreshTokenSuccess(VoxImplantCallback.LoginTokens loginTokens)

Invoked when refresh of login tokens finished successfully

Parameters

  • loginTokens:

    VoxImplantCallback.LoginTokens

    login tokens

void onSIPInfoReceivedInCall(String callId, String type, String content, Map<String,String> headers)

SIP INFO received during a call

Parameters

  • callId:

    String

    id of call

  • type:

    String

    MIME type of info

  • content:

    String

    Body of info message

  • headers:

    Map<String,String>

    Optional headers passed with event