|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.event.CallChangeAdapter
net.java.sip.communicator.impl.protocol.sip.ActiveCallsRepository
public class ActiveCallsRepository
Keeps a list of all calls currently active and maintained by this protocol povider. Offers methods for finding a call by its ID, peer dialog and others.
| Constructor Summary | |
|---|---|
ActiveCallsRepository(OperationSetBasicTelephonySipImpl opSet)
Creates a new instance of this repository. |
|
| Method Summary | |
|---|---|
void |
addCall(CallSipImpl call)
Adds the specified call to the list of calls tracked by this repository. |
void |
callStateChanged(CallChangeEvent evt)
If evt indicates that the call has been ended we remove it from the repository. |
CallSipImpl |
findCall(javax.sip.Dialog dialog)
Returns the call that contains the specified dialog (i.e. |
CallSipImpl |
findCall(String callID,
String localTag,
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(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(String branchID,
String callID)
Returns the CallPeerSipImpl whose INVITE transaction has the specified branchID and whose corresponding INVITE request contains the specified callID. |
CallPeerSipImpl |
findCallPeer(String callID,
String localTag,
String remoteTag)
Returns the CallPeerSipImpl instance with a Dialog matching CallID, local and remote tags. |
Iterator<CallSipImpl> |
getActiveCalls()
Returns an iterator over all currently active (non-ended) calls. |
| Methods inherited from class net.java.sip.communicator.service.protocol.event.CallChangeAdapter |
|---|
callPeerAdded, callPeerRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActiveCallsRepository(OperationSetBasicTelephonySipImpl opSet)
opSet - a reference to the
OperationSetBasicTelephonySipImpl that craeted us.| Method Detail |
|---|
public void addCall(CallSipImpl call)
call - CallSipImplpublic void callStateChanged(CallChangeEvent evt)
callStateChanged in interface CallChangeListenercallStateChanged in class CallChangeAdapterevt - the CallChangeEvent instance containing the source
calls and its old and new state.public Iterator<CallSipImpl> getActiveCalls()
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(String callID,
String localTag,
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(String branchID,
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(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(String callID,
String localTag,
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.
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||