|
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.service.protocol.Call
net.java.sip.communicator.service.protocol.AbstractCall<T,V>
net.java.sip.communicator.service.protocol.media.MediaAwareCall<CallPeerJabberImpl,OperationSetBasicTelephonyJabberImpl,ProtocolProviderServiceJabberImpl>
net.java.sip.communicator.impl.protocol.jabber.CallJabberImpl
public class CallJabberImpl
A Jabber implementation of the Call abstract class encapsulating Jabber jingle sessions.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.service.protocol.media.MediaAwareCall |
|---|
DEFAULT_DEVICE, localVideoAllowed, mediaUseCase, parentOpSet |
| Fields inherited from class net.java.sip.communicator.service.protocol.AbstractCall |
|---|
callGroup |
| Constructor Summary | |
|---|---|
protected |
CallJabberImpl(OperationSetBasicTelephonyJabberImpl parentOpSet)
Initializes a new CallJabberImpl instance belonging to sourceProvider and associated with the jingle session with the specified jingleSID. |
| Method Summary | |
|---|---|
void |
callAdded(CallGroupEvent evt)
Notifies this instance that a specific Call has been added to a CallGroup. |
void |
closeCobriStreamConnector(CallPeerJabberImpl peer,
MediaType mediaType,
CobriStreamConnector cobriStreamConnector)
Closes a specific CobriStreamConnector which is associated with a MediaStream of a specific MediaType upon request from a specific CallPeer. |
boolean |
containsJingleSID(String sid)
Determines if this call contains a peer whose corresponding session has the specified sid. |
CobriConferenceIQ |
createCobriChannels(CallPeerJabberImpl peer,
Iterable<RtpDescriptionPacketExtension> rdpes)
Allocates cobri (conference) channels for a specific MediaType to be used by a specific CallPeer. |
CobriStreamConnector |
createCobriStreamConnector(CallPeerJabberImpl peer,
MediaType mediaType,
CobriConferenceIQ.Channel channel,
StreamConnectorFactory factory)
Initializes a CobriStreamConnector on behalf of a specific CallPeer to be used in association with a specific CobriConferenceIQ.Channel of a specific MediaType. |
void |
expireCobriChannels(CallPeerJabberImpl peer,
CobriConferenceIQ conference)
Expires specific (cobri) conference channels used by a specific CallPeer. |
boolean |
getLocalInputEvtAware()
Returns if the call support inputevt (remote control). |
CallPeerJabberImpl |
getPeer(String sid)
Returns the peer whose corresponding session has the specified sid. |
CallPeerJabberImpl |
getPeerBySessInitPacketID(String id)
Returns the peer whose corresponding session-init ID has the specified id. |
CallPeerJabberImpl |
initiateSession(String calleeJID,
org.jivesoftware.smackx.packet.DiscoverInfo discoverInfo,
Iterable<org.jivesoftware.smack.packet.PacketExtension> sessionInitiateExtensions)
Creates a CallPeerJabberImpl from calleeJID and sends them session-initiate IQ request. |
void |
modifyVideoContent(boolean allowed)
Send a content-modify message for all current CallPeer to reflect possible video change in media setup. |
CallPeerJabberImpl |
processSessionInitiate(JingleIQ jingleIQ)
Creates a new call peer and sends a RINGING response. |
void |
setLocalInputEvtAware(boolean enable)
Enable or disable inputevt support (remote control). |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractCall |
|---|
getCallGroup, getCallPeerCount, getCallPeers, getCallPeersVector, getCrossProtocolCallPeerCount, getCrossProtocolCallPeers, getCrossProtocolCallPeersVector, getProtocolProvider, setCallGroup |
| Methods inherited from class net.java.sip.communicator.service.protocol.Call |
|---|
addCallChangeListener, equals, fireCallChangeEvent, fireCallChangeEvent, fireCallPeerEvent, getCallID, getCallState, hashCode, isDefaultEncrypted, isSipZrtpAttribute, removeCallChangeListener, setCallState, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected CallJabberImpl(OperationSetBasicTelephonyJabberImpl parentOpSet)
JingleIQ.generateSID().
parentOpSet - the OperationSetBasicTelephonyJabberImpl
instance in the context of which this call has been created.| Method Detail |
|---|
public void setLocalInputEvtAware(boolean enable)
enable - new state of inputevt supportpublic boolean getLocalInputEvtAware()
public CallPeerJabberImpl processSessionInitiate(JingleIQ jingleIQ)
jingleIQ - the JingleIQ that created the session.
CallPeerJabberImpl (the one that sent
the INVITE).
public CallPeerJabberImpl initiateSession(String calleeJID,
org.jivesoftware.smackx.packet.DiscoverInfo discoverInfo,
Iterable<org.jivesoftware.smack.packet.PacketExtension> sessionInitiateExtensions)
throws OperationFailedException
calleeJID - the party that we would like to invite to this call.discoverInfo - any discovery information that we have for the jid
we are trying to reach and that we are passing in order to avoid having
to ask for it again.sessionInitiateExtensions - a collection of additional and optional
PacketExtensions to be added to the session-initiate
JingleIQ which is to init this CallJabberImpl
OperationFailedException - with the corresponding code if we fail
to create the call.
public void modifyVideoContent(boolean allowed)
throws OperationFailedException
allowed - if the local video is allowed or not
OperationFailedException - if problem occurred during message
generation or network problempublic boolean containsJingleSID(String sid)
sid - the ID of the session whose peer we are looking for.
public CallPeerJabberImpl getPeer(String sid)
sid - the ID of the session whose peer we are looking for.
CallPeerJabberImpl with the specified jingle
sid and null if no such peer exists in this call.public CallPeerJabberImpl getPeerBySessInitPacketID(String id)
id - the ID of the session-init IQ whose peer we are looking for.
CallPeerJabberImpl with the specified IQ
id and null if no such peer exists in this call.public void callAdded(CallGroupEvent evt)
callAdded in interface CallGroupListenercallAdded in class MediaAwareCall<CallPeerJabberImpl,OperationSetBasicTelephonyJabberImpl,ProtocolProviderServiceJabberImpl>evt - a CallGroupEvent which specifies the Call
which has been added to a CallGroupMediaAwareCall.callAdded(CallGroupEvent)
public void closeCobriStreamConnector(CallPeerJabberImpl peer,
MediaType mediaType,
CobriStreamConnector cobriStreamConnector)
peer - the CallPeer which requests the closing of the
specified cobriStreamConnectormediaType - the MediaType of the MediaStream with
which the specified cobriStreamConnector is associatedcobriStreamConnector - the CobriStreamConnector to close on
behalf of the specified peer
public CobriConferenceIQ createCobriChannels(CallPeerJabberImpl peer,
Iterable<RtpDescriptionPacketExtension> rdpes)
peer - the CallPeer which is to use the allocated cobri
(conference) channelsrdpes - the RtpDescriptionPacketExtensions which specify
the MediaTypes for which cobri (conference) channels are to be
allocated
public CobriStreamConnector createCobriStreamConnector(CallPeerJabberImpl peer,
MediaType mediaType,
CobriConferenceIQ.Channel channel,
StreamConnectorFactory factory)
peer - the CallPeer which requests the initialization of a
CobriStreamConnectormediaType - the MediaType of the stream which is to use the
initialized CobriStreamConnector for RTP and RTCP trafficchannel - the CobriConferenceIQ.Channel to which RTP and
RTCP traffic is to be sent and from which such traffic is to be received
via the initialized CobriStreamConnectorfactory - a StreamConnectorFactory implementation which is
to allocate the sockets to be used for RTP and RTCP traffic
public void expireCobriChannels(CallPeerJabberImpl peer,
CobriConferenceIQ conference)
peer - the CallPeer which uses the specified (cobri)
conference channels to be expiredconference - a CobriConferenceIQ which specifies the
(cobri) conference channels to be expired
|
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 | |||||||||