Packages 
Package Description
com.zingaya.voximplant  

Package com.zingaya.voximplant

com.zingaya.voximplant

Interface VoxImplantCallback



  • public interface VoxImplantCallback
    • Method Detail

      • onRefreshTokenFailed

        void onRefreshTokenFailed(java.lang.Integer errorCode)
        Invoked when refresh of login tokens failed
        Parameters:
        errorCode - error code
      • onOneTimeKeyGenerated

        void onOneTimeKeyGenerated(java.lang.String key)
        Returns one time key generated by the login server as a result of requestOneTimeLoginKey.
        Parameters:
        key - One time key
      • onConnectionSuccessful

        void onConnectionSuccessful()
        Connection with cloud established
      • onConnectionClosed

        void onConnectionClosed()
        Connection with cloud closed
      • onConnectionFailedWithError

        void onConnectionFailedWithError(java.lang.String reason)
        Connection with cloud failed
        Parameters:
        reason - Error message
      • onCallConnected

        void onCallConnected(java.lang.String callId,
                           java.util.Map<java.lang.String,java.lang.String> headers)
        Call established
        Parameters:
        callId - id of call
        headers - Optional headers passed with event
      • onCallDisconnected

        void onCallDisconnected(java.lang.String callId,
                              java.util.Map<java.lang.String,java.lang.String> headers,
                              boolean answeredElsewhere)
        Call terminated
        Parameters:
        callId - id of call
        headers - Optional headers passed with event
        answeredElsewhere - Indicate if the call was answered on other peer
      • onCallRinging

        void onCallRinging(java.lang.String callId,
                         java.util.Map<java.lang.String,java.lang.String> headers)
        Call ringing. You should start playing call progress tone now
        Parameters:
        callId - id of call
        headers - Optional headers passed with event
      • onCallFailed

        void onCallFailed(java.lang.String callId,
                        int code,
                        java.lang.String reason,
                        java.util.Map<java.lang.String,java.lang.String> headers)
        Outgoing call failed
        Parameters:
        callId - id of call
        code - Status code
        reason - Status message
        headers - Optional headers passed with event
      • onCallAudioStarted

        void onCallAudioStarted(java.lang.String callId)
        Call audio started. You should stop playing progress tone when event is received
        Parameters:
        callId - id of call
      • onIncomingCall

        void onIncomingCall(java.lang.String callId,
                          java.lang.String from,
                          java.lang.String displayName,
                          boolean videoCall,
                          java.util.Map<java.lang.String,java.lang.String> headers)
        New incoming call received by SDK
        Parameters:
        callId - id of call
        from - SIP URI of caller
        displayName - Displayed name of caller
        videoCall - video call flag
        headers - Optional headers passed with event
      • onSIPInfoReceivedInCall

        void onSIPInfoReceivedInCall(java.lang.String callId,
                                   java.lang.String type,
                                   java.lang.String content,
                                   java.util.Map<java.lang.String,java.lang.String> headers)
        SIP INFO received during a call
        Parameters:
        callId - id of call
        type - MIME type of info
        content - Body of info message
        headers - Optional headers passed with event
      • onMessageReceivedInCall

        void onMessageReceivedInCall(java.lang.String callId,
                                   java.lang.String text)
        Instant message received during a call
        Parameters:
        callId - id of call
        text - Message text
      • onNetStatsReceived

        void onNetStatsReceived(java.lang.String callId,
                              VoxImplantCallback.NetworkInfo stats)
        Event dispatched when packet loss data received from VoxImplant servers
        Parameters:
        callId - id of call
        stats - NetworkInfo