SIGN UP

ICallListener

Interface that may be used to handle call events.

Methods

onCallAudioStarted

void onCallAudioStarted(ICall call)

Invoked after audio is started in the call.

Parameters

  • call:

    ICall

    Call that invoked the event

onCallConnected

void onCallConnected(ICall call, Map<String,String> headers)

Invoked after call was connected.

Parameters

  • call:

    ICall

    Call that invoked the event

  • headers:

    Map<String,String>

    Optional SIP headers received with message

onCallDisconnected

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

Invoked after the call was disconnected.

Parameters

  • call:

    ICall

    Call that invoked the event

  • headers:

    Map<String,String>

    Optional SIP headers received with message

  • answeredElsewhere:

    boolean

    True if the call was answered on another device via SIP forking, false otherwise

onCallFailed

void onCallFailed(ICall call, int code, String description, Map<String,String> headers)

Invoked if call us failed.

Parameters

  • call:

    ICall

    Call that invoked the event

  • code:

    int

    Status code of the call failure

  • description:

    String

    Status message of the call failure

  • headers:

    Map<String,String>

    Optional SIP headers received with message

onCallRinging

void onCallRinging(ICall call, Map<String,String> headers)

Call ringing. You should start playing call progress tone now.

Parameters

  • call:

    ICall

    Call that invoked the event

  • headers:

    Map<String,String>

    Optional SIP headers received with message

onCallStatsReceived

void onCallStatsReceived(ICall call, CallStats callStats)

Invoked periodically with interval configured with ClientConfig.statsCollectionInterval with call statistics

Parameters

  • call:

    ICall

    Call that invoked the event

  • callStats:

    CallStats

    Call statistics

onEndpointAdded

void onEndpointAdded(ICall call, IEndpoint endpoint)

Invoked when new endpoint is added to the call. It is recommended to set IEndpointListener for the new endpoint, when this event is triggered.

Parameters

onICECompleted

void onICECompleted(ICall call)

Invoked when ICE connection is complete.

Parameters

  • call:

    ICall

    Call that invoked the event

onICETimeout

void onICETimeout(ICall call)

Invoked if connection was not established due to a network connection problem between 2 peers.

Parameters

  • call:

    ICall

    Call that invoked the event

onLocalVideoStreamAdded

void onLocalVideoStreamAdded(ICall call, IVideoStream videoStream)

Invoked when local video is added to the call.

Parameters

onLocalVideoStreamRemoved

void onLocalVideoStreamRemoved(ICall call, IVideoStream videoStream)

Invoked when local video is removed from the call.

Parameters

onMessageReceived

void onMessageReceived(ICall call, String text)

Invoked when message is received within the call.

Implemented atop SIP INFO for communication between call endpoint and Voximplant cloud, and is separated from Voximplant messaging API.

Parameters

  • call:

    ICall

    Call that invoked the event

  • text:

    String

    Content of the message

onSIPInfoReceived

void onSIPInfoReceived(ICall call, String type, String content, Map<String,String> headers)

Invoked when INFO message is received.

Parameters

  • call:

    ICall

    Call that invoked the event

  • type:

    String

    MIME type of INFO message

  • content:

    String

    Body of INFO message

  • headers:

    Map<String,String>

    Optional SIP headers received with message