Packages 
Package Description
com.zingaya.voximplant  

Package com.zingaya.voximplant

com.zingaya.voximplant

Interface VoxImplantCallback



  • public interface VoxImplantCallback
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void onCallAudioStarted(java.lang.String callId)
      Call audio started.
      void onCallConnected(java.lang.String callId, java.util.Map<java.lang.String,java.lang.String> headers)
      Call established
      void onCallDisconnected(java.lang.String callId, java.util.Map<java.lang.String,java.lang.String> headers)
      Call terminated
      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
      void onCallRinging(java.lang.String callId, java.util.Map<java.lang.String,java.lang.String> headers)
      Call ringing.
      void onConnectionClosed()
      Connection with cloud closed
      void onConnectionFailedWithError(java.lang.String reason)
      Connection with cloud failed
      void onConnectionSuccessful()
      Connection with cloud established
      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
      void onLoginFailed(VoxImplantClient.LoginFailureReason reason)
      Invoked when login process failed
      void onLoginSuccessful(java.lang.String displayName)
      Invoked when login process finished successfully.
      void onMessageReceivedInCall(java.lang.String callId, java.lang.String text)
      Instant message received during a call
      void onNetStatsReceived(java.lang.String callId, VoxImplantCallback.NetworkInfo stats)
      Event dispatched when packet loss data received from VoxImplant servers
      void onOneTimeKeyGenerated(java.lang.String key)
      Returns one time key generated by the login server as a result of requestOneTimeLoginKey.
      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
    • Method Detail

      • onLoginSuccessful

        void onLoginSuccessful(java.lang.String displayName)
        Invoked when login process finished successfully.
        Parameters:
        displayName - Display name of logged in user
      • 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)
        Call terminated
        Parameters:
        callId - id of call
        headers - Optional headers passed with event
      • 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