Package javaforce.voip
Interface SIPClientInterface
public interface SIPClientInterface
Callback interface for handling SIP messages for a SIP client.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAck message (may contain SDP data)voidCall was terminated from other side.voidCall was cancelled/failed with SIP status code.intIncoming invite, must return SIP code : 180 (ringing), 200 (connect), 486(busy), or -1 to do nothing.voidInstant message received.voidServer send notify command.Server has requested capabilities of phone.voidCall refer (transfer) was successful.voidonRegister(SIPClient client, boolean status) Registration status.voidCall is ringing.voidCall is successful or making progress.voidTrunk is trying call.
-
Method Details
-
onRegister
Registration status. -
onTrying
Trunk is trying call. (100) -
onRinging
Call is ringing. (180) -
onSuccess
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
Call was terminated from other side. -
onInvite
Incoming invite, must return SIP code : 180 (ringing), 200 (connect), 486(busy), or -1 to do nothing. -
onCancel
Call was cancelled/failed with SIP status code. -
onRefer
Call refer (transfer) was successful. -
onNotify
Server send notify command. (event="message-summary" or "presence") -
onAck
Ack message (may contain SDP data) -
onMessage
Instant message received. -
onOptions
Server has requested capabilities of phone. Return SDP with codecs available. Return null to ignore OPTIONS request.
-