|
Jitsi: 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.util.PropertyChangeNotifier
net.java.sip.communicator.service.protocol.AbstractCallPeer<T,V>
net.java.sip.communicator.service.protocol.media.MediaAwareCallPeer<CallSipImpl,CallPeerMediaHandlerSipImpl,ProtocolProviderServiceSipImpl>
net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl
public class CallPeerSipImpl
Our SIP implementation of the default CallPeer;
| Field Summary | |
|---|---|
(package private) static String |
PICTURE_FAST_UPDATE_CONTENT_SUB_TYPE
The sub-type of the content carried by SIP INFO Requests for the purposes of picture_fast_update. |
| Fields inherited from class net.java.sip.communicator.service.protocol.AbstractCallPeer |
|---|
callPeerConferenceListeners, callPeerListeners, callPeerSecurityListeners, NO_CONFERENCE_MEMBERS |
| Fields inherited from interface net.java.sip.communicator.service.neomedia.event.SimpleAudioLevelListener |
|---|
MAX_LEVEL, MIN_LEVEL |
| Fields inherited from interface net.java.sip.communicator.service.protocol.CallPeer |
|---|
CALL_DURATION_START_TIME_UNKNOWN, MUTE_PROPERTY_NAME |
| Constructor Summary | |
|---|---|
CallPeerSipImpl(javax.sip.address.Address peerAddress,
CallSipImpl owningCall,
javax.sip.Transaction containingTransaction,
javax.sip.SipProvider sourceProvider)
Creates a new call peer with address peerAddress. |
|
| Method Summary | |
|---|---|
(package private) void |
addMethodProcessorListener(MethodProcessorListener listener)
Registers a specific MethodProcessorListener with this CallPeer so that it gets notified by this instance about the processing of SIP signaling. |
void |
answer()
Indicates a user request to answer an incoming call from this CallPeer. |
protected void |
fireRequestProcessed(javax.sip.message.Request request,
javax.sip.message.Response response)
Notifies the MethodProcessorListeners registered with this CallPeer that it has processed a specific SIP Request by sending a specific SIP Response. |
protected void |
fireResponseProcessed(javax.sip.message.Response response,
javax.sip.message.Request request)
Notifies the MethodProcessorListeners registered with this CallPeer that it has processed a specific SIP Response by sending a specific SIP Request. |
String |
getAddress()
Returns a String locator for that peer. |
URL |
getCallInfoURL()
Returns a URL pointing to a location with call control information for this peer or null if no such URL is available for this call peer. |
Contact |
getContact()
Returns the contact corresponding to this peer or null if no particular contact has been associated. |
javax.sip.Dialog |
getDialog()
Returns the JAIN SIP dialog that has been created by the application for communication with this call peer. |
String |
getDisplayName()
Returns a human readable name representing this peer. |
javax.sip.SipProvider |
getJainSipProvider()
Returns the jain sip provider instance that is responsible for sending and receiving requests and responses related to this call peer. |
javax.sip.Transaction |
getLatestInviteTransaction()
Returns the transaction instance that contains the INVITE which started this call. |
javax.sip.address.Address |
getPeerAddress()
Returns the address of the remote party (making sure that it corresponds to the latest address we've received) and caches it. |
String |
getURI()
Returns full URI of the address. |
void |
handleAuthenticationChallenge(javax.sip.ClientTransaction retryTran)
Updates this call so that it would record a new transaction and dialog that have been recreated because of a re-authentication. |
void |
hangup()
Ends the call with for this CallPeer. |
void |
hangup(boolean failed,
String reason)
Ends the call with for this CallPeer. |
void |
invite()
Creates a CallPeerSipImpl from calleeAddress and sends them an invite request. |
void |
processAck(javax.sip.ServerTransaction serverTransaction,
javax.sip.message.Request ack)
Updates the session description and sends the state of the corresponding call peer to CONNECTED. |
void |
processBye(javax.sip.ServerTransaction byeTran)
Sets the state of the corresponding call peer to DISCONNECTED and sends an OK response. |
void |
processCancel(javax.sip.ServerTransaction serverTransaction)
Sets the state of the specifies call peer as DISCONNECTED. |
void |
processInviteOK(javax.sip.ClientTransaction clientTransaction,
javax.sip.message.Response ok)
Sets our state to CONNECTED, sends an ACK and processes the SDP description in the ok Response. |
(package private) void |
processPictureFastUpdate(javax.sip.ClientTransaction clientTransaction,
javax.sip.message.Response response)
|
(package private) boolean |
processPictureFastUpdate(javax.sip.ServerTransaction serverTransaction,
javax.sip.message.Request request)
|
void |
processReInvite(javax.sip.ServerTransaction serverTransaction)
Reinitializes the media session of the CallPeer that this INVITE request is destined to. |
void |
processSessionProgress(javax.sip.ClientTransaction tran,
javax.sip.message.Response response)
Handles early media in 183 Session Progress responses. |
void |
putOnHold(boolean onHold)
Puts the CallPeer represented by this instance on or off hold. |
(package private) void |
removeMethodProcessorListener(MethodProcessorListener listener)
Unregisters a specific MethodProcessorListener from this CallPeer so that it no longer gets notified by this instance about the processing of SIP signaling. |
(package private) void |
sendReInvite()
Sends a reINVITE request to this CallPeer within its current Dialog. |
void |
setDialog(javax.sip.Dialog dialog)
Sets the JAIN SIP dialog that has been created by the application for communication with this call peer. |
void |
setDisplayName(String displayName)
Sets a human readable name representing this peer. |
void |
setJainSipProvider(javax.sip.SipProvider jainSipProvider)
Sets the jain sip provider instance that is responsible for sending and receiving requests and responses related to this call peer. |
void |
setLatestInviteTransaction(javax.sip.Transaction transaction)
Sets the transaction instance that contains the INVITE which started this call. |
void |
setTransportAddress(InetSocketAddress transportAddress)
The address that we have used to contact this peer. |
| Methods inherited from class net.java.sip.communicator.util.PropertyChangeNotifier |
|---|
addPropertyChangeListener, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.protocol.CallPeer |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
static final String PICTURE_FAST_UPDATE_CONTENT_SUB_TYPE
| Constructor Detail |
|---|
public CallPeerSipImpl(javax.sip.address.Address peerAddress,
CallSipImpl owningCall,
javax.sip.Transaction containingTransaction,
javax.sip.SipProvider sourceProvider)
peerAddress - the JAIN SIP Address of the new call peer.owningCall - the call that contains this call peer.containingTransaction - the transaction that created the call peer.sourceProvider - the provider that the containingTransaction belongs
to.| Method Detail |
|---|
public String getAddress()
public String getURI()
public javax.sip.address.Address getPeerAddress()
public String getDisplayName()
public void setDisplayName(String displayName)
displayName - the peer's display namepublic void setDialog(javax.sip.Dialog dialog)
dialog - the JAIN SIP dialog that has been created by the
application for this call.public javax.sip.Dialog getDialog()
public void setLatestInviteTransaction(javax.sip.Transaction transaction)
transaction - the Transaction that initiated this call.public javax.sip.Transaction getLatestInviteTransaction()
public void setJainSipProvider(javax.sip.SipProvider jainSipProvider)
jainSipProvider - the SipProvider that serves this call
peer.public javax.sip.SipProvider getJainSipProvider()
public void setTransportAddress(InetSocketAddress transportAddress)
transportAddress - The address that we have used to contact this
peer.public Contact getContact()
public URL getCallInfoURL()
getCallInfoURL in interface CallPeergetCallInfoURL in class AbstractCallPeer<CallSipImpl,ProtocolProviderServiceSipImpl>
void processPictureFastUpdate(javax.sip.ClientTransaction clientTransaction,
javax.sip.message.Response response)
boolean processPictureFastUpdate(javax.sip.ServerTransaction serverTransaction,
javax.sip.message.Request request)
throws OperationFailedException
OperationFailedExceptionpublic void processReInvite(javax.sip.ServerTransaction serverTransaction)
serverTransaction - a reference to the ServerTransaction
that contains the reINVITE request.public void processBye(javax.sip.ServerTransaction byeTran)
byeTran - the ServerTransaction the the BYE request arrived in.public void processCancel(javax.sip.ServerTransaction serverTransaction)
serverTransaction - the transaction that the cancel was received in.
public void processAck(javax.sip.ServerTransaction serverTransaction,
javax.sip.message.Request ack)
serverTransaction - the transaction that the ACK was received in.ack - the ACK Request we need to process
public void processSessionProgress(javax.sip.ClientTransaction tran,
javax.sip.message.Response response)
tran - the ClientTransaction that the response
arrived in.response - the 183 Response to process
public void processInviteOK(javax.sip.ClientTransaction clientTransaction,
javax.sip.message.Response ok)
clientTransaction - the ClientTransaction that the response
arrived in.ok - the OK Response to process
public void hangup()
throws OperationFailedException
OperationFailedException - if we fail to terminate the call.
public void hangup(boolean failed,
String reason)
throws OperationFailedException
failed - indicates if the hangup is following to a call failure or
simply a disconnectreason - the reason of the hangup. If the hangup is due to a call
failure, then this string could indicate the reason of the failure
OperationFailedException - if we fail to terminate the call.
public void answer()
throws OperationFailedException
OperationFailedException - if we fail to create or send the
response.
public void putOnHold(boolean onHold)
throws OperationFailedException
onHold - true to have the CallPeer put on hold;
false, otherwise
OperationFailedException - if we fail to construct or send the
INVITE request putting the remote side on/off hold.
void sendReInvite()
throws OperationFailedException
OperationFailedException - if sending the reINVITE request fails
public void invite()
throws OperationFailedException
OperationFailedException - with the corresponding code if we fail
to create the call or in case we someone calls us mistakenly while we
are actually wrapped around an invite transaction.void addMethodProcessorListener(MethodProcessorListener listener)
listener - the MethodProcessorListener to be registered
with this CallPeer so that it gets notified by this instance
about the processing of SIP signaling
protected void fireRequestProcessed(javax.sip.message.Request request,
javax.sip.message.Response response)
request - the SIP Request processed by this
CallPeerresponse - the SIP Response this CallPeer sent as
part of its processing of the specified request
protected void fireResponseProcessed(javax.sip.message.Response response,
javax.sip.message.Request request)
response - the SIP Response processed by this
CallPeerrequest - the SIP Request this CallPeer sent as
part of its processing of the specified responsevoid removeMethodProcessorListener(MethodProcessorListener listener)
listener - the MethodProcessorListener to be unregistered
from this CallPeer so that it no longer gets notified by this
instance about the processing of SIP signalingpublic void handleAuthenticationChallenge(javax.sip.ClientTransaction retryTran)
retryTran - the new transaction
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||