com.voximplant.sdk.call

Interface ICallListener



  • public interface ICallListener
    Interface that may be used to handle call events.
    • Method Detail

      • onCallConnected

        void onCallConnected(ICall call, java.util.Map<java.lang.String,java.lang.String> headers)
        Invoked after call was connected.
        Parameters:
        call - Call that invoked the event
        headers - Optional SIP headers received with message
      • onCallDisconnected

        void onCallDisconnected(ICall call, java.util.Map<java.lang.String,java.lang.String> headers, boolean answeredElsewhere)
        Invoked after the call was disconnected.
        Parameters:
        call - Call that invoked the event
        headers - Optional SIP headers received with message
        answeredElsewhere - True if the call was answered on another device via SIP forking, false otherwise
      • onCallRinging

        void onCallRinging(ICall call, java.util.Map<java.lang.String,java.lang.String> headers)
        Call ringing. You should start playing call progress tone now.
        Parameters:
        call - Call that invoked the event
        headers - Optional SIP headers received with message
      • onCallFailed

        void onCallFailed(ICall call, int code, java.lang.String description, java.util.Map<java.lang.String,java.lang.String> headers)
        Invoked if call us failed.
        Parameters:
        call - Call that invoked the event
        code - Status code of the call failure
        description - Status message of the call failure
        headers - Optional SIP headers received with message
      • onCallAudioStarted

        void onCallAudioStarted(ICall call)
        Invoked after audio is started in the call.
        Parameters:
        call - Call that invoked the event
      • onSIPInfoReceived

        void onSIPInfoReceived(ICall call, java.lang.String type, java.lang.String content, java.util.Map<java.lang.String,java.lang.String> headers)
        Invoked when INFO message is received.
        Parameters:
        call - Call that invoked the event
        type - MIME type of INFO message
        content - Body of INFO message
        headers - Optional SIP headers received with message
      • onMessageReceived

        void onMessageReceived(ICall call, java.lang.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 - Call that invoked the event
        text - Content of the message
      • onLocalVideoStreamAdded

        void onLocalVideoStreamAdded(ICall call, IVideoStream videoStream)
        Invoked when local video is added to the call
        Parameters:
        call - Call that invoked the event
        videoStream - Local video stream
      • onLocalVideoStreamRemoved

        void onLocalVideoStreamRemoved(ICall call, IVideoStream videoStream)
        Invoked when local video is removed from the call
        Parameters:
        call - Call that invoked the event
        videoStream - Local video stream