public interface Call
Service can be informed of subsequent call events (such as alerting or
answered) by extending
CallListenerAbstract
and overriding
corresponding callback methods.
Participant
,
CallListener
,
CallListenerAbstract
Modifier and Type | Method and Description |
---|---|
void |
addParticipant(Participant party)
Alert multiple destinations for the initial call.
|
void |
allow()
Allow the call to proceed to the original target.
|
void |
divertTo(String target)
Divert the call to a
target . |
void |
drop()
Drop the call.
|
void |
enableMediaBeforeAnswer()
Instruct Collaboration Environment to set up resources to allow media
operations before a call is answered.
|
List |
getAlertingParties()
Get a list of the parties that are alerting on this call.
|
Participant |
getAnsweringParty()
Get details about the party that answered the call.
|
Object |
getAttribute(String name)
Retrieve an attribute that was previously stored with the setAttribute
method.
|
Participant |
getCalledParty()
Get a reference to the called party.
|
Participant |
getCallingParty()
Get a reference to the calling party.
|
String |
getCollectedDigits()
Returns digits collected during the call setup
|
String |
getContextId()
Get the context ID associated with this call.
|
String |
getId()
Every call, or session, has a unique identifier.
|
String |
getUCID()
Get the Universal Call ID associated with this call.
|
void |
initiate()
Initiates an outgoing call to the target defined while creating the call
instance.
|
Boolean |
isCalledPhase()
Returns true if server is invoked in imsterm phase, false otherwise.
|
Boolean |
isCallingPhase()
Returns true if server is invoked in imsorig phase, false otherwise.
|
Call |
setAttribute(String name,
Object attribute)
Store an attribute for later retrieval.
|
void |
setCollectedDigits(String collectedDigits)
Sets the collected digits portion of the initial invitation message
sent to the called party
|
void |
setContextId(String contextId)
Set the context ID associated with this call.
|
void |
suspend()
Suspends the call to proceed further.
|
String getId()
void allow()
IllegalStateException
- In case of an exception in the underlying service.void drop()
IllegalStateException
- In case of an exception in the underlying service.void divertTo(String target)
target
. The target
can be
a simple telephone number (either E.164 or any digit string that matches
your system's dial plan). It can also be of the form handle@domain
or simply handle (where handle is either a name or
telephone number (the case above), and domain is either a host or
domain name). When no domain is supplied, the domain used for the
redirection will be the same as the domain of the calledParty.
To receive notification of subsequent events (e.g., alerting, answered) on this call, the service must extend CallListener and and override corresponding callback methods.
target
- address of the party to which to divert the callIllegalArgumentException
- if target is null, blank, or poorly formedIllegalStateException
- in case of an exception in the underlying serviceParticipant getCallingParty()
Participant getCalledParty()
List getAlertingParties()
Participant getAnsweringParty()
Call setAttribute(String name, Object attribute)
A service can get a reference to a call using
CallFactory#getCall(String)
or using the call passed to it in one
of the callback methods (such as
CallListenerAbstract#callAnswered(Call)
).
If an object of the same name is already bound to this Call, the object
is replaced. This can be used by the service writer to hold some data
that will be needed at a later point in the call.
name
- the name of the object to retain; cannot be nullattribute
- the object to retain; cannot be nullSerializationException
- if attempting to store a non Serializable attribute from a
service which did not create this callObject getAttribute(String name)
A service can get a reference to a call using
CallFactory#getCall(String)
or using the call passed to it in one
of the callback methods (such as
CallListenerAbstract#callAnswered(Call)
).
name
- the name of the attribute to getSerializationException
- if attempting to retrieve a non Serializable attribute from a
service which did not create this callvoid suspend()
IllegalStateException
- In case of an exception in the underlying service.void initiate()
Boolean isCallingPhase()
Boolean isCalledPhase()
String getUCID()
String getContextId()
void setContextId(String contextId)
contextId
- the new context IDvoid addParticipant(Participant party)
allow()
method is invoked if the call is not in progress.
To receive notification of subsequent events (e.g., alerting, answered)
on the added participant, the service must extend CallListener and
override corresponding callback methods.party
- instance of ParticipantIllegalStateException
- In case of an exception in the underlying service.void enableMediaBeforeAnswer()
MediaService
) has
been initiated. This method must be invoked in
CallListener.callIntercepted(Call)
.IllegalStateException
- if invoked at any point other than
CallListener.callIntercepted(Call)
String getCollectedDigits()
void setCollectedDigits(String collectedDigits)
collectedDigits
- digits to be set in the initial invitation messageCopyright © 2014 Avaya. All Rights Reserved.