public class OperationSetTelephonyConferencingJabberImpl extends AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceJabberImpl,OperationSetBasicTelephonyJabberImpl,CallJabberImpl,CallPeerJabberImpl,java.lang.String> implements RegistrationStateChangeListener, org.jivesoftware.smack.PacketListener, org.jivesoftware.smack.filter.PacketFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISABLE_COIN_PROP_NAME
Property used to disable COIN notifications.
|
ELEMENT_DISPLAY_TEXT, ELEMENT_ENDPOINT, ELEMENT_MEDIA, ELEMENT_SRC_ID, ELEMENT_STATUS, ELEMENT_TYPE, ELEMENT_USER, ELEMENT_USERS, parentProvider
Constructor and Description |
---|
OperationSetTelephonyConferencingJabberImpl(ProtocolProviderServiceJabberImpl parentProvider)
Initializes a new OperationSetTelephonyConferencingJabberImpl
instance which is to provide telephony conferencing services for the
specified Jabber ProtocolProviderService implementation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(org.jivesoftware.smack.packet.Packet packet)
Tests whether or not the specified packet should be handled by this
operation set.
|
protected CallJabberImpl |
createOutgoingCall()
Creates a new outgoing Call into which conference callees are to
be invited by this OperationSetTelephonyConferencing.
|
protected CallPeer |
doInviteCalleeToCall(java.lang.String calleeAddress,
CallJabberImpl call)
Invites a callee with a specific address to join a specific Call
for the purposes of telephony conferencing.
|
protected ConferenceInfoDocument |
getCurrentConferenceInfo(MediaAwareCallPeer<?,?,?> callPeer)
Creates a ConferenceInfoDocument which describes the current
state of the conference in which callPeer participates.
|
protected java.lang.String |
getLocalDisplayName()
Returns the display name for the local peer, which is to be used when
we send Conference Information.
|
protected java.lang.String |
getLocalEntity(CallPeer callPeer)
Returns a string to be used for the entity attribute of the
user element for the local peer, in a Conference Information
document to be sent to callPeer
|
protected void |
notifyCallPeers(Call call)
Notifies all CallPeers associated with a specific Call
about changes in the telephony conference-related information.
|
protected java.lang.String |
parseAddressString(java.lang.String calleeAddressString)
Parses a String value which represents a callee address
specified by the user into an object which is to actually represent the
callee during the invitation to a conference Call.
|
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
Handles incoming jingle packets and passes them to the corresponding
method based on their action.
|
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
Implementation of method registrationStateChange from
interface RegistrationStateChangeListener for setting up (or down)
our JingleManager when an XMPPConnection is available
|
ConferenceDescription |
setupConference(ChatRoom chatRoom)
Sets up a conference with no participants, which members of
chatRoom can join.
|
basicTelephonyChanged, callBegun, callEnded, callPeerAdded, callPeerRemoved, callStateChanged, createConfCall, createConfCall, getBasicTelephony, getConferenceInfoDiff, getRemoteSourceID, incomingCallReceived, inviteCalleeToCall, notifyAll, outgoingCallCreated, propertyChange, setConferenceInfoXML, stripParametersFromAddress
public static final java.lang.String DISABLE_COIN_PROP_NAME
public OperationSetTelephonyConferencingJabberImpl(ProtocolProviderServiceJabberImpl parentProvider)
parentProvider
- the Jabber ProtocolProviderService
implementation which has requested the creation of the new instance and
for which the new instance is to provide telephony conferencing servicesprotected void notifyCallPeers(Call call)
Object.notifyAll()
notifies all CallPeers associated
with the telephony conference in which a specific Call is
participating.notifyCallPeers
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceJabberImpl,OperationSetBasicTelephonyJabberImpl,CallJabberImpl,CallPeerJabberImpl,java.lang.String>
call
- the Call whose CallPeers are to be notified
about changes in the telephony conference-related informationpublic void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged
in interface RegistrationStateChangeListener
registrationStateChanged
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceJabberImpl,OperationSetBasicTelephonyJabberImpl,CallJabberImpl,CallPeerJabberImpl,java.lang.String>
evt
- the event receivedprotected CallJabberImpl createOutgoingCall() throws OperationFailedException
createOutgoingCall
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceJabberImpl,OperationSetBasicTelephonyJabberImpl,CallJabberImpl,CallPeerJabberImpl,java.lang.String>
OperationFailedException
- if anything goes wrongprotected CallPeer doInviteCalleeToCall(java.lang.String calleeAddress, CallJabberImpl call) throws OperationFailedException
AbstractOperationSetTelephonyConferencing.inviteCalleeToCall(String,Call)
.doInviteCalleeToCall
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceJabberImpl,OperationSetBasicTelephonyJabberImpl,CallJabberImpl,CallPeerJabberImpl,java.lang.String>
calleeAddress
- the address of the callee to be invited to the
specified existing Callcall
- the existing Call to invite the callee with the
specified address toOperationFailedException
- if inviting the specified callee to the
specified Call failsprotected java.lang.String parseAddressString(java.lang.String calleeAddressString) throws OperationFailedException
parseAddressString
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceJabberImpl,OperationSetBasicTelephonyJabberImpl,CallJabberImpl,CallPeerJabberImpl,java.lang.String>
calleeAddressString
- a String value which represents a
callee address to be parsed into an object which is to actually represent
the callee during the invitation to a conference CallOperationFailedException
- if parsing the specified
calleeAddressString failspublic boolean accept(org.jivesoftware.smack.packet.Packet packet)
accept
in interface org.jivesoftware.smack.filter.PacketFilter
packet
- the packet to test.public void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket
in interface org.jivesoftware.smack.PacketListener
packet
- the packet to process.protected ConferenceInfoDocument getCurrentConferenceInfo(MediaAwareCallPeer<?,?,?> callPeer)
getCurrentConferenceInfo
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceJabberImpl,OperationSetBasicTelephonyJabberImpl,CallJabberImpl,CallPeerJabberImpl,java.lang.String>
protected java.lang.String getLocalEntity(CallPeer callPeer)
getLocalEntity
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceJabberImpl,OperationSetBasicTelephonyJabberImpl,CallJabberImpl,CallPeerJabberImpl,java.lang.String>
callPeer
- The CallPeer for which we are creating a
Conference Information document.protected java.lang.String getLocalDisplayName()
getLocalDisplayName
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceJabberImpl,OperationSetBasicTelephonyJabberImpl,CallJabberImpl,CallPeerJabberImpl,java.lang.String>
public ConferenceDescription setupConference(ChatRoom chatRoom)
setupConference
in interface OperationSetTelephonyConferencing
setupConference
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceJabberImpl,OperationSetBasicTelephonyJabberImpl,CallJabberImpl,CallPeerJabberImpl,java.lang.String>
chatRoom
- the ChatRoom for which to set up a conference.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.