|
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.media.AbstractOperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>
net.java.sip.communicator.impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl
public class OperationSetBasicTelephonyJabberImpl
Implements all call management logic and exports basic telephony support by implementing OperationSetBasicTelephony.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetBasicTelephony |
|---|
MAX_MEDIA_PORT_NUMBER_PROPERTY_NAME, MIN_MEDIA_PORT_NUMBER_PROPERTY_NAME |
| Constructor Summary | |
|---|---|
OperationSetBasicTelephonyJabberImpl(ProtocolProviderServiceJabberImpl protocolProvider)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
accept(org.jivesoftware.smack.packet.Packet packet)
Tests whether or not the specified packet should be handled by this operation set. |
void |
answerCallPeer(CallPeer peer)
Implements method answerCallPeer from OperationSetBasicTelephony. |
Call |
createCall(Contact callee)
Creates a new Call and invites a specific CallPeer to it given by her Contact. |
Call |
createCall(Contact callee,
CallGroup group)
Creates a new Call and invites a specific CallPeer to it given by her Contact. |
Call |
createCall(String callee)
Creates a new Call and invites a specific CallPeer to it given by her String URI. |
Call |
createCall(String callee,
CallGroup group)
Creates a new Call and invites a specific CallPeer to it given by her String URI. |
(package private) AbstractCallPeer<?,?> |
createOutgoingCall(CallJabberImpl call,
String calleeAddress)
Init and establish the specified call. |
(package private) AbstractCallPeer<?,?> |
createOutgoingCall(CallJabberImpl call,
String calleeAddress,
Iterable<org.jivesoftware.smack.packet.PacketExtension> sessionInitiateExtensions)
Init and establish the specified call. |
Iterator<CallJabberImpl> |
getActiveCalls()
Returns an iterator over all currently active calls. |
protected ActiveCallsRepositoryJabberImpl |
getActiveCallsRepository()
Returns a reference to the ActiveCallsRepositoryJabberImpl that
we are currently using. |
(package private) String |
getFullCalleeURI(String calleeAddress)
Gets the full callee URI for a specific callee address. |
Iterator<CallGTalkImpl> |
getGTalkActiveCalls()
Returns an iterator over all currently Google Talk active calls. |
protected ActiveCallsRepositoryGTalkImpl |
getGTalkActiveCallsRepository()
Returns a reference to the ActiveCallsRepositoryGTalkImpl that
we are currently using. |
ProtocolProviderServiceJabberImpl |
getProtocolProvider()
Returns the protocol provider that this operation set belongs to. |
void |
hangupCallPeer(CallPeer peer)
Ends the call with the specified peer. |
boolean |
isSecure(CallPeer peer)
Gets the secure state of the call session in which a specific peer is involved |
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
Handles incoming jingle packets and passes them to the corresponding method based on their action. |
void |
putOffHold(CallPeer peer)
Resumes communication with a call peer previously put on hold. |
void |
putOnHold(CallPeer peer)
Puts the specified CallPeer "on hold". |
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
Implementation of method registrationStateChange from interface RegistrationStateChangeListener for setting up (or down) our JingleManager when an XMPPConnection is available |
void |
setMute(Call call,
boolean mute)
Sets the mute state of the CallJabberImpl. |
void |
setTransferAuthority(TransferAuthority authority)
Transfer authority used for interacting with user for unknown calls and the requests for transfer. |
void |
shutdown()
Closes all active calls. |
void |
transfer(CallPeer peer,
CallPeer target)
Transfers (in the sense of call transfer) a specific CallPeer to a specific callee address which already participates in an active Call. |
void |
transfer(CallPeer peer,
String target)
Transfers (in the sense of call transfer) a specific CallPeer to a specific callee address which may or may not already be participating in an active Call. |
| Methods inherited from class net.java.sip.communicator.service.protocol.media.AbstractOperationSetBasicTelephony |
|---|
addCallListener, createRecorder, fireCallEvent, fireCallEvent, removeCallListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.protocol.OperationSetBasicTelephony |
|---|
addCallListener, createRecorder, removeCallListener |
| Constructor Detail |
|---|
public OperationSetBasicTelephonyJabberImpl(ProtocolProviderServiceJabberImpl protocolProvider)
protocolProvider - a reference to the
ProtocolProviderServiceJabberImpl instance that created us.| Method Detail |
|---|
public void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged in interface RegistrationStateChangeListenerevt - the event received
public Call createCall(String callee,
CallGroup group)
throws OperationFailedException
createCall in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>callee - the address of the callee who we should invite to a new
Callgroup - CallGroup from which the Call will belong
OperationFailedException - with the corresponding code if we fail
to create the callOperationSetBasicTelephony.createCall(String)
public Call createCall(Contact callee,
CallGroup group)
throws OperationFailedException
createCall in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>callee - the address of the callee who we should invite to a new
callgroup - CallGroup from which the Call will belong
OperationFailedException - with the corresponding code if we fail
to create the callOperationSetBasicTelephony.createCall(Contact)
public Call createCall(String callee)
throws OperationFailedException
createCall in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>callee - the address of the callee who we should invite to a new
Call
OperationFailedException - with the corresponding code if we fail
to create the callOperationSetBasicTelephony.createCall(String)
public Call createCall(Contact callee)
throws OperationFailedException
createCall in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>callee - the address of the callee who we should invite to a new
call
OperationFailedException - with the corresponding code if we fail
to create the callOperationSetBasicTelephony.createCall(Contact)
AbstractCallPeer<?,?> createOutgoingCall(CallJabberImpl call,
String calleeAddress)
throws OperationFailedException
call - the CallJabberImpl that will be used
to initiate the callcalleeAddress - the address of the callee that we'd like to connect
with.
OperationFailedException - with the corresponding code if we fail
to create the call.
AbstractCallPeer<?,?> createOutgoingCall(CallJabberImpl call,
String calleeAddress,
Iterable<org.jivesoftware.smack.packet.PacketExtension> sessionInitiateExtensions)
throws OperationFailedException
call - the CallJabberImpl that will be used
to initiate the callcalleeAddress - the address of the callee that we'd like to connect
with.sessionInitiateExtensions - a collection of additional and optional
PacketExtensions to be added to the session-initiate
JingleIQ which is to init the specified call
OperationFailedException - with the corresponding code if we fail
to create the call.String getFullCalleeURI(String calleeAddress)
calleeAddress - the callee address to get the full callee URI for
public Iterator<CallJabberImpl> getActiveCalls()
getActiveCalls in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>public Iterator<CallGTalkImpl> getGTalkActiveCalls()
public void putOffHold(CallPeer peer)
throws OperationFailedException
putOffHold in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>peer - the call peer to put on hold.
OperationFailedException - if we fail to send the "hold" message.
public void putOnHold(CallPeer peer)
throws OperationFailedException
putOnHold in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>peer - the peer that we'd like to put on hold.
OperationFailedException - if we fail to send the "hold" message.
public void setMute(Call call,
boolean mute)
setMute in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>setMute in class AbstractOperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>call - the CallJabberImpl whose mute state is setmute - true to mute the call streams being sent to
peers; otherwise, false
public void hangupCallPeer(CallPeer peer)
throws ClassCastException,
OperationFailedException
hangupCallPeer in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>peer - the peer that we'd like to hang up on.
ClassCastException - if peer is not an instance of this
CallPeerSipImpl.
OperationFailedException - if we fail to terminate the call.
public void answerCallPeer(CallPeer peer)
throws OperationFailedException
answerCallPeer in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>peer - the call peer that we want to answer
OperationFailedException - if we fails to answerpublic void shutdown()
public boolean accept(org.jivesoftware.smack.packet.Packet packet)
accept in interface org.jivesoftware.smack.filter.PacketFilterpacket - the packet to test.
public void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket in interface org.jivesoftware.smack.PacketListenerpacket - the packet to process.protected ActiveCallsRepositoryJabberImpl getActiveCallsRepository()
ActiveCallsRepositoryJabberImpl that
we are currently using.
ActiveCallsRepositoryJabberImpl that
we are currently using.protected ActiveCallsRepositoryGTalkImpl getGTalkActiveCallsRepository()
ActiveCallsRepositoryGTalkImpl that
we are currently using.
ActiveCallsRepositoryGTalkImpl that
we are currently using.public ProtocolProviderServiceJabberImpl getProtocolProvider()
getProtocolProvider in interface OperationSetBasicTelephony<ProtocolProviderServiceJabberImpl>public boolean isSecure(CallPeer peer)
isSecure in interface OperationSetSecureTelephonypeer - the peer for who the call state is required
public void transfer(CallPeer peer,
CallPeer target)
throws OperationFailedException
The method is suitable for providing the implementation of attended call transfer (though no such requirement is imposed).
transfer in interface OperationSetAdvancedTelephony<ProtocolProviderServiceJabberImpl>peer - the CallPeer to be transfered to the specified
callee addresstarget - the address in the form of CallPeer of the callee
to transfer peer to
OperationFailedException - if something goes wrongOperationSetAdvancedTelephony.transfer(CallPeer, CallPeer)
public void transfer(CallPeer peer,
String target)
throws OperationFailedException
The method is suitable for providing the implementation of unattended call transfer (though no such requirement is imposed).
transfer in interface OperationSetAdvancedTelephony<ProtocolProviderServiceJabberImpl>peer - the CallPeer to be transfered to the specified
callee addresstarget - the address of the callee to transfer peer to
OperationFailedException - if something goes wrongOperationSetAdvancedTelephony.transfer(CallPeer, String)public void setTransferAuthority(TransferAuthority authority)
setTransferAuthority in interface OperationSetAdvancedTelephony<ProtocolProviderServiceJabberImpl>authority - transfer authority.
|
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 | |||||||||