|
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 | |||||||||
T - the provider extension class like for example
ProtocolProviderServiceSipImpl or
ProtocolProviderServiceJabberImplpublic interface OperationSetBasicTelephony<T extends ProtocolProviderService>
An Operation Set defining all basic telephony operations such as conducting simple calls and etc. Note that video is not considered as a part of a supplementary operation set and if included in the service should be available behind the basic telephony set.
| Field Summary | |
|---|---|
static int |
HANGUP_REASON_ENCRYPTION_REQUIRED
Reason code used to hangup peer if call was not encrypted. |
static int |
HANGUP_REASON_NORMAL_CLEARING
Reason code used to hangup peer, indicates normal hangup. |
static int |
HANGUP_REASON_TIMEOUT
Reason code used to hangup peer when we wait for some event and it timeouted. |
static String |
MAX_MEDIA_PORT_NUMBER_PROPERTY_NAME
The name of the property that contains the maximum port number that we'd like our RTP managers to bind upon. |
static String |
MIN_MEDIA_PORT_NUMBER_PROPERTY_NAME
The name of the property that contains the minimum port number that we'd like our RTP managers to bind upon. |
| Method Summary | |
|---|---|
void |
addCallListener(CallListener listener)
Registers the specified CallListener with this provider so that it could be notified when incoming calls are received. |
void |
answerCallPeer(CallPeer peer)
Indicates a user request to answer an incoming call from the specified CallPeer. |
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 uri)
Creates a new Call and invites a specific CallPeer to it given by her String URI. |
Call |
createCall(String uri,
CallGroup group)
Creates a new Call and invites a specific CallPeer to it given by her String URI. |
Recorder |
createRecorder(Call call)
Creates a new Recorder which is to record the specified Call (into a file which is to be specified when starting the returned Recorder). |
Iterator<? extends Call> |
getActiveCalls()
Returns an iterator over all currently active calls. |
T |
getProtocolProvider()
Returns the protocol provider that this operation set belongs to. |
void |
hangupCallPeer(CallPeer peer)
Indicates a user request to end a call with the specified call peer. |
void |
hangupCallPeer(CallPeer peer,
int reasonCode,
String reason)
Ends the call with the specified peer. |
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 |
removeCallListener(CallListener listener)
Removes the specified listener from the list of call listeners. |
void |
setMute(Call call,
boolean mute)
Sets the mute state of the Call. |
| Field Detail |
|---|
static final String MIN_MEDIA_PORT_NUMBER_PROPERTY_NAME
static final String MAX_MEDIA_PORT_NUMBER_PROPERTY_NAME
static final int HANGUP_REASON_NORMAL_CLEARING
static final int HANGUP_REASON_TIMEOUT
static final int HANGUP_REASON_ENCRYPTION_REQUIRED
| Method Detail |
|---|
void addCallListener(CallListener listener)
listener - the listener to register with this provider.void removeCallListener(CallListener listener)
listener - the listener to unregister.
Call createCall(String uri)
throws OperationFailedException,
ParseException
uri - the address of the callee who we should invite to a new
Call
OperationFailedException - with the corresponding code if we fail
to create the call
ParseException - if callee is not a valid SIP address
String
Call createCall(Contact callee)
throws OperationFailedException
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 call
Call createCall(String uri,
CallGroup group)
throws OperationFailedException,
ParseException
uri - 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 call
ParseException - if callee is not a valid SIP address
String
Call createCall(Contact callee,
CallGroup group)
throws OperationFailedException
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 call
void answerCallPeer(CallPeer peer)
throws OperationFailedException
peer - the call peer that we'd like to answer.
OperationFailedException - with the corresponding code if we
encounter an error while performing this operation.
void putOnHold(CallPeer peer)
throws OperationFailedException
peer - the peer that we'd like to put on hold.
OperationFailedException - with the corresponding code if we
encounter an error while performing this operation.
void putOffHold(CallPeer peer)
throws OperationFailedException
peer - the call peer to put on hold.
OperationFailedException - with the corresponding code if we
encounter an error while performing this operation
void hangupCallPeer(CallPeer peer)
throws OperationFailedException
peer - the peer that we'd like to hang up on.
OperationFailedException - with the corresponding code if we
encounter an error while performing this operation.
void hangupCallPeer(CallPeer peer,
int reasonCode,
String reason)
throws OperationFailedException
peer - the peer that we'd like to hang up on.reasonCode - indicates if the hangup is following to a call failure or
simply a disconnect indicate by the reason.reason - the reason of the hangup. If the hangup is due to a call
failure, then this string could indicate the reason of the failure
OperationFailedException - if we fail to terminate the call.Iterator<? extends Call> getActiveCalls()
void setMute(Call call,
boolean mute)
Muting audio streams sent from the call is implementation specific and one of the possible approaches to it is sending silence.
call - the Call whos mute state is setmute - true to mute the call streams being sent to
peers; otherwise, falseT getProtocolProvider()
Recorder createRecorder(Call call)
throws OperationFailedException
call - the Call which is to be recorded by the returned
Recorder when the latter is started
OperationFailedException - if anything goes wrong while creating
the new Recorder for the specified call
|
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 | |||||||||