|
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.event.PropertyChangeNotifier
net.java.sip.communicator.service.protocol.AbstractCallPeer<T,V>
net.java.sip.communicator.service.protocol.media.MediaAwareCallPeer<CallJabberImpl,CallPeerMediaHandlerJabberImpl,ProtocolProviderServiceJabberImpl>
net.java.sip.communicator.impl.protocol.jabber.CallPeerJabberImpl
public class CallPeerJabberImpl
Implements a Jabber CallPeer.
| Field Summary |
|---|
| 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 | |
|---|---|
CallPeerJabberImpl(String peerAddress,
CallJabberImpl owningCall)
Creates a new call peer with address peerAddress. |
|
CallPeerJabberImpl(String peerAddress,
CallJabberImpl owningCall,
JingleIQ sessionIQ)
Creates a new call peer with address peerAddress. |
|
| Method Summary | |
|---|---|
void |
answer()
Indicates a user request to answer an incoming call from this CallPeer. |
String |
getAddress()
Returns a String locator for that peer. |
Contact |
getContact()
Returns the contact corresponding to this peer or null if no particular contact has been associated. |
org.jivesoftware.smackx.packet.DiscoverInfo |
getDiscoverInfo()
Returns the service discovery information that we have for this peer. |
String |
getDisplayName()
Returns a human readable name representing this peer. |
String |
getJingleSID()
Returns the session ID of the Jingle session associated with this call. |
String |
getSessInitID()
Returns the IQ ID of the Jingle session-initiate packet associated with this call. |
JingleIQ |
getSessionIQ()
Returns the IQ ID of the Jingle session-initiate packet associated with this call. |
String |
getURI()
Returns full URI of the address. |
void |
hangup(boolean failed,
String reasonText,
org.jivesoftware.smack.packet.PacketExtension reasonOtherExtension)
Ends the call with for this CallPeer. |
protected void |
initiateSession(Iterable<org.jivesoftware.smack.packet.PacketExtension> sessionInitiateExtensions)
Processes the session initiation JingleIQ that we were created
with, passing its content to the media handler and then sends either a
"session-info/ringing" or a "session-terminate" response. |
boolean |
isInitiator()
Determines whether this peer was the one that initiated the session. |
void |
processContentAccept(JingleIQ content)
Processes the content-accept JingleIQ. |
void |
processContentAdd(JingleIQ content)
Processes the content-add JingleIQ. |
void |
processContentModify(JingleIQ content)
Processes the content-modify JingleIQ. |
void |
processContentReject(JingleIQ content)
Processes the content-reject JingleIQ. |
void |
processContentRemove(JingleIQ content)
Processes the content-remove JingleIQ. |
void |
processSessionAccept(JingleIQ sessionInitIQ)
Processes the session initiation JingleIQ that we were created
with, passing its content to the media handler and then sends either a
"session-info/ringing" or a "session-terminate" response. |
void |
processSessionInfo(SessionInfoPacketExtension info)
Handles the specified session info packet according to its content. |
protected void |
processSessionInitiate(JingleIQ sessionInitIQ)
Processes the session initiation JingleIQ that we were created
with, passing its content to the media handler and then sends either a
"session-info/ringing" or a "session-terminate" response. |
void |
processSessionTerminate(JingleIQ jingleIQ)
Puts this peer into a CallPeerState.DISCONNECTED, indicating a
reason to the user, if there is one. |
void |
processTransfer(TransferPacketExtension transfer)
Processes a specific "XEP-0251: Jingle Session Transfer" transfer packet (extension). |
void |
processTransportInfo(JingleIQ jingleIQ)
Processes the transport-info JingleIQ. |
void |
putOnHold(boolean onHold)
Puts the CallPeer represented by this instance on or off hold. |
void |
sendCoinSessionInfo(boolean isConference)
Send a content message to reflect change in audio setup (start, stop or conference starts). |
void |
sendModifyVideoContent(boolean allowed)
Send a content message to reflect change in video setup (start or stop). |
void |
sendModifyVideoResolutionContent()
Send a content message to reflect change in video setup (start or stop). |
protected void |
sendTransportInfo(Iterable<ContentPacketExtension> contents)
Sends local candidate addresses from the local peer to the remote peer using the transport-info JingleIQ. |
void |
setAddress(String address)
Specifies the address, phone number, or other protocol specific identifier that represents this call peer. |
void |
setDiscoverInfo(org.jivesoftware.smackx.packet.DiscoverInfo discoverInfo)
Sets the service discovery information that we have for this peer. |
void |
setState(CallPeerState newState,
String reason,
int reasonCode)
Overrides the parent set state method in order to make sure that we close our media handler whenever we enter a disconnected state. |
protected void |
transfer(String to,
String sid)
Transfer (in the sense of call transfer) this CallPeer to a specific callee address which may optionally be participating in an active Call. |
| Methods inherited from class net.java.sip.communicator.util.event.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 |
| Constructor Detail |
|---|
public CallPeerJabberImpl(String peerAddress,
CallJabberImpl owningCall)
peerAddress - the Jabber address of the new call peer.owningCall - the call that contains this call peer.
public CallPeerJabberImpl(String peerAddress,
CallJabberImpl owningCall,
JingleIQ sessionIQ)
peerAddress - the Jabber address of the new call peer.owningCall - the call that contains this call peer.sessionIQ - Session initiate IQ| Method Detail |
|---|
public String getAddress()
public String getURI()
public void setAddress(String address)
address - The address of this call peer.public String getDisplayName()
public Contact getContact()
protected void processSessionInitiate(JingleIQ sessionInitIQ)
JingleIQ that we were created
with, passing its content to the media handler and then sends either a
"session-info/ringing" or a "session-terminate" response.
sessionInitIQ - The JingleIQ that created the session that
we are handling here.
protected void initiateSession(Iterable<org.jivesoftware.smack.packet.PacketExtension> sessionInitiateExtensions)
throws OperationFailedException
JingleIQ that we were created
with, passing its content to the media handler and then sends either a
"session-info/ringing" or a "session-terminate" response.
sessionInitiateExtensions - a collection of additional and optional
PacketExtensions to be added to the session-initiate
JingleIQ which is to initiate the session with this
CallPeerJabberImpl
OperationFailedException - exception
public void answer()
throws OperationFailedException
OperationFailedException - if we fail to create or send the
response.
public void hangup(boolean failed,
String reasonText,
org.jivesoftware.smack.packet.PacketExtension reasonOtherExtension)
failed - indicates if the hangup is following to a call failure or
simply a disconnectreasonText - the text, if any, to be set on the
ReasonPacketExtension as the value of itsreasonOtherExtension - the PacketExtension, if any, to be
set on the ReasonPacketExtension as the value of its
otherExtension propertypublic String getJingleSID()
public String getSessInitID()
public JingleIQ getSessionIQ()
public void processSessionTerminate(JingleIQ jingleIQ)
CallPeerState.DISCONNECTED, indicating a
reason to the user, if there is one.
jingleIQ - the JingleIQ that's terminating our session.public void processSessionAccept(JingleIQ sessionInitIQ)
JingleIQ that we were created
with, passing its content to the media handler and then sends either a
"session-info/ringing" or a "session-terminate" response.
sessionInitIQ - The JingleIQ that created the session that
we are handling here.
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.public void setDiscoverInfo(org.jivesoftware.smackx.packet.DiscoverInfo discoverInfo)
discoverInfo - the discovery information that we have obtained for
this peer.public org.jivesoftware.smackx.packet.DiscoverInfo getDiscoverInfo()
public boolean isInitiator()
public void processSessionInfo(SessionInfoPacketExtension info)
info - the SessionInfoPacketExtension that we just received.
public void processTransfer(TransferPacketExtension transfer)
throws OperationFailedException
transfer - the "XEP-0251: Jingle Session Transfer" transfer packet
(extension) to process
OperationFailedException - if anything goes wrong while processing
the specified transfer packet (extension)public void sendCoinSessionInfo(boolean isConference)
isConference - if the call if now a conference callpublic void sendModifyVideoResolutionContent()
public void sendModifyVideoContent(boolean allowed)
allowed - if the local video is allowed or notpublic void processContentAdd(JingleIQ content)
JingleIQ.
content - The JingleIQ that contains content that remote
peer wants to be addedpublic void processContentAccept(JingleIQ content)
JingleIQ.
content - The JingleIQ that contains content that remote
peer has acceptedpublic void processContentModify(JingleIQ content)
JingleIQ.
content - The JingleIQ that contains content that remote
peer wants to be modifiedpublic void processContentRemove(JingleIQ content)
JingleIQ.
content - The JingleIQ that contains content that remote
peer wants to be removedpublic void processContentReject(JingleIQ content)
JingleIQ.
content - The JingleIQpublic void processTransportInfo(JingleIQ jingleIQ)
JingleIQ.
jingleIQ - the transport-info JingleIQ to processprotected void sendTransportInfo(Iterable<ContentPacketExtension> contents)
JingleIQ.
contents - the local candidate addresses to be sent from the local
peer to the remote peer using the transport-info
JingleIQ
public void setState(CallPeerState newState,
String reason,
int reasonCode)
MediaAwareCallPeer
setState in class MediaAwareCallPeer<CallJabberImpl,CallPeerMediaHandlerJabberImpl,ProtocolProviderServiceJabberImpl>newState - the CallPeerState that we are about to enter and
that we pass to our predecessor.reason - a reason phrase explaining the state (e.g. if newState
indicates a failure) and that we pass to our predecessor.reasonCode - the code for the reason of the state change.
protected void transfer(String to,
String sid)
throws OperationFailedException
to - the address of the callee to transfer this CallPeer tosid - the Jingle session ID of the active Call between the
local peer and the callee in the case of attended transfer; null
in the case of unattended transfer
OperationFailedException - if something goes wrong
|
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 | |||||||||