|
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<CallGTalkImpl,CallPeerMediaHandlerGTalkImpl,ProtocolProviderServiceJabberImpl>
net.java.sip.communicator.impl.protocol.jabber.CallPeerGTalkImpl
public class CallPeerGTalkImpl
Implements a Google Talk CallPeer.
| Field Summary | |
|---|---|
protected boolean |
isInitiator
Indicates whether this peer was the one that initiated the session. |
| 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 | |
|---|---|
CallPeerGTalkImpl(String peerAddress,
CallGTalkImpl owningCall)
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. |
String |
getDisplayName()
Returns a human readable name representing this peer. |
String |
getSessInitID()
Returns the IQ ID of the Jingle session-initiate packet associated with this call. |
String |
getSessionID()
Returns the session ID of the Jingle session 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)
Initiate a Google Talk session SessionIQ. |
boolean |
isInitiator()
Determines whether this peer was the one that initiated the session. |
void |
processCandidates(SessionIQ sessionInitIQ)
Process candidates received. |
void |
processSessionAccept(SessionIQ sessionInitIQ)
Processes the session initiation SessionIQ that we were created
with, passing its content to the media handler. |
protected void |
processSessionInitiate(SessionIQ sessionInitIQ)
Processes the session initiation SessionIQ that we were created
with, passing its content to the media handler and then sends either a
"session-info/ringing" or a "terminate" response. |
void |
processSessionReject(SessionIQ sessionIQ)
Puts this peer into a CallPeerState.DISCONNECTED, indicating a
reason to the user, if there is one. |
void |
processSessionTerminate(SessionIQ sessionIQ)
Puts this peer into a CallPeerState.DISCONNECTED, indicating a
reason to the user, if there is one. |
protected void |
sendCandidates(Iterable<GTalkCandidatePacketExtension> candidates)
Sends local candidate addresses from the local peer to the remote peer using the candidates SessionIQ. |
void |
setAddress(String address)
Specifies the address, phone number, or other protocol specific identifier that represents this call peer. |
| 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 |
| Field Detail |
|---|
protected boolean isInitiator
| Constructor Detail |
|---|
public CallPeerGTalkImpl(String peerAddress,
CallGTalkImpl owningCall)
peerAddress - the Google Talk address of the new call peer.owningCall - the call that contains this call peer.| Method Detail |
|---|
public String getAddress()
public String getURI()
public void setAddress(String address)
address - The address of this call peer.public String getDisplayName()
public boolean isInitiator()
public Contact getContact()
protected void processSessionInitiate(SessionIQ sessionInitIQ)
SessionIQ that we were created
with, passing its content to the media handler and then sends either a
"session-info/ringing" or a "terminate" response.
sessionInitIQ - The SessionIQ that created the session that
we are handling here.
protected void initiateSession(Iterable<org.jivesoftware.smack.packet.PacketExtension> sessionInitiateExtensions)
throws OperationFailedException
SessionIQ.
sessionInitiateExtensions - a collection of additional and optional
PacketExtensions to be added to the initiate
SessionIQ which is to initiate the session with this
CallPeerGTalkImpl
OperationFailedException - exceptionpublic void processSessionReject(SessionIQ sessionIQ)
CallPeerState.DISCONNECTED, indicating a
reason to the user, if there is one.
sessionIQ - the SessionIQ that's terminating our session.public void processSessionTerminate(SessionIQ sessionIQ)
CallPeerState.DISCONNECTED, indicating a
reason to the user, if there is one.
sessionIQ - the SessionIQ that's terminating our session.public void processSessionAccept(SessionIQ sessionInitIQ)
SessionIQ that we were created
with, passing its content to the media handler.
sessionInitIQ - The SessionIQ that created the session that
we are handling here.public void processCandidates(SessionIQ sessionInitIQ)
sessionInitIQ - The SessionIQ that created the session we
are handling herepublic String getSessionID()
public String getSessInitID()
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 property
public void answer()
throws OperationFailedException
OperationFailedException - if we fail to create or send the
response.protected void sendCandidates(Iterable<GTalkCandidatePacketExtension> candidates)
SessionIQ.
candidates - the local candidate addresses to be sent from the local
peer to the remote peer using the candidates
SessionIQ
|
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 | |||||||||