Interface SIPClientInterface


public interface SIPClientInterface
Callback interface for handling SIP messages for a SIP client.
  • Method Details

    • onRegister

      void onRegister(SIPClient client, boolean status)
      Registration status.
    • onTrying

      void onTrying(SIPClient client, String callid)
      Trunk is trying call. (100)
    • onRinging

      void onRinging(SIPClient client, String callid)
      Call is ringing. (180)
    • onSuccess

      void onSuccess(SIPClient client, String callid, SDP sdp, boolean complete)
      Call is successful or making progress. if complete=true then call is successful (SIP 200) if complete=false then call is making progress (SIP 183) (usually for ringback tones)
    • onBye

      void onBye(SIPClient client, String callid)
      Call was terminated from other side.
    • onInvite

      int onInvite(SIPClient client, String callid, String fromid, String fromnumber, SDP sdp)
      Incoming invite, must return SIP code : 180 (ringing), 200 (connect), 486(busy), or -1 to do nothing.
    • onCancel

      void onCancel(SIPClient client, String callid, int code)
      Call was cancelled/failed with SIP status code.
    • onRefer

      void onRefer(SIPClient client, String callid)
      Call refer (transfer) was successful.
    • onNotify

      void onNotify(SIPClient client, String callid, String event, String[] content)
      Server send notify command. (event="message-summary" or "presence")
    • onAck

      void onAck(SIPClient client, String callid, SDP sdp)
      Ack message (may contain SDP data)
    • onMessage

      void onMessage(SIPClient client, String callid, String fromid, String fromnumber, String[] msg)
      Instant message received.
    • onOptions

      SDP onOptions(SIPClient client, String callid)
      Server has requested capabilities of phone. Return SDP with codecs available. Return null to ignore OPTIONS request.