public class ActiveCallsRepositorySipImpl extends ActiveCallsRepository<CallSipImpl,OperationSetBasicTelephonySipImpl>
parentOperationSet
Constructor and Description |
---|
ActiveCallsRepositorySipImpl(OperationSetBasicTelephonySipImpl opSet)
Creates a new instance of this repository.
|
Modifier and Type | Method and Description |
---|---|
CallSipImpl |
findCall(javax.sip.Dialog dialog)
Returns the call that contains the specified dialog (i.e.
|
CallSipImpl |
findCall(java.lang.String callID,
java.lang.String localTag,
java.lang.String remoteTag)
Returns the CallSipImpl instance with a Dialog
matching the specified Call-ID, local and remote tags.
|
CallPeerSipImpl |
findCallPeer(javax.sip.Dialog dialog)
Returns the call peer whose associated jain sip dialog matches
dialog.
|
CallPeerSipImpl |
findCallPeer(java.lang.String branchID,
javax.sip.header.Header cidHeader)
Returns the CallPeerSipImpl whose INVITE transaction has the
specified branchID and whose corresponding INVITE request
contains the specified callID.
|
CallPeerSipImpl |
findCallPeer(java.lang.String branchID,
java.lang.String callID)
Returns the CallPeerSipImpl whose INVITE transaction has the
specified branchID and whose corresponding INVITE request
contains the specified callID.
|
CallPeerSipImpl |
findCallPeer(java.lang.String callID,
java.lang.String localTag,
java.lang.String remoteTag)
Returns the CallPeerSipImpl instance with a Dialog
matching CallID, local and remote tags.
|
protected void |
fireCallEvent(int eventID,
Call sourceCall,
CallChangeEvent cause)
Creates and dispatches a CallEvent notifying registered
listeners that an event with id eventID has occurred on
sourceCall.
|
addCall, callStateChanged, fireCallEvent, getActiveCallCount, getActiveCalls
callPeerAdded, callPeerRemoved
public ActiveCallsRepositorySipImpl(OperationSetBasicTelephonySipImpl opSet)
opSet
- a reference to the
OperationSetBasicTelephonySipImpl that craeted us.public CallSipImpl findCall(javax.sip.Dialog dialog)
dialog
- the jain sip Dialog whose containing call we're
looking for.public CallPeerSipImpl findCallPeer(javax.sip.Dialog dialog)
dialog
- the jain sip dialog whose corresponding peer we're
looking for.public CallPeerSipImpl findCallPeer(java.lang.String callID, java.lang.String localTag, java.lang.String remoteTag)
callID
- the Call-ID of the dialog we are looking for.localTag
- the local tag of the dialog we are looking for.remoteTag
- the remote tag of the dialog we are looking for.public CallPeerSipImpl findCallPeer(java.lang.String branchID, java.lang.String callID)
callID
- the Call-ID of the dialog we are looking for.branchID
- a String corresponding to the branch id of the
latest INVITE transaction that was associated with the peer we are
looking for.public CallPeerSipImpl findCallPeer(java.lang.String branchID, javax.sip.header.Header cidHeader)
cidHeader
- the Call-ID of the dialog we are looking for.branchID
- a String corresponding to the branch id of the
latest INVITE transaction that was associated with the peer we are
looking for.public CallSipImpl findCall(java.lang.String callID, java.lang.String localTag, java.lang.String remoteTag)
callID
- the Call-ID of the dialog we are looking for.localTag
- the local tag of the dialog we are looking for.remoteTag
- the remote tag of the dialog we are looking for.protected void fireCallEvent(int eventID, Call sourceCall, CallChangeEvent cause)
fireCallEvent
in class ActiveCallsRepository<CallSipImpl,OperationSetBasicTelephonySipImpl>
eventID
- the ID of the event to dispatchsourceCall
- the call on which the event has occurredcause
- the CallChangeEvent, if any, which is the cause
that necessitated a new CallEvent to be firedActiveCallsRepository.fireCallEvent(int, Call, CallChangeEvent)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.