|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CallCenterCall
interface extends the core Call
interface. This interface provides additional Call-related features for the
call center package. Applications may query an object with the
instanceof
operator to check whether it supports this
interface.
connectPredictive()
method on this interface.
setApplicationData()
method defined on this
sets the current data and the getApplicationData()
method
retrieves the current application-specific data.
getTrunks()
method on
this interface. A trunk is represented by the CallCenterTrunk
interface.
CallCenterCall
interface are reported
via the CallCenterCallObserver
interface. The following are
those events reported via this interface:
CallCenterCallObserver
,
CallCenterTrunk
Field Summary | |
static int |
ANSWERING_TREATMENT_CONNECT
Answering endpoint treatment: connect the Call when the endpoint is detected. |
static int |
ANSWERING_TREATMENT_DROP
Answering endpoint treatment: drop the Call when the endpoint is detected. |
static int |
ANSWERING_TREATMENT_NONE
Answering endpoint treatment: no treatment specified. |
static int |
ANSWERING_TREATMENT_PROVIDER_DEFAULT
Answering endpoint treatment: follow the default treatment. |
static int |
ENDPOINT_ANSWERING_MACHINE
Answering endpoint type: answering endpoint may be an answering machine. |
static int |
ENDPOINT_ANY
Answering endpoint type: answering endpoint may be anything. |
static int |
ENDPOINT_FAX_MACHINE
Answering endpoint type: answering endpoint may be a fax machine. |
static int |
ENDPOINT_HUMAN_INTERVENTION
Answering endpoint type: answering endpoint may be a human. |
static int |
MAX_RINGS
The CallCenterCall.MIN_RINGS constant defines the minimum
number of rings which the application may specify for the destination end
before a predictive telephone call is classified as "no answer". |
static int |
MIN_RINGS
The CallCenterCall.MIN_RINGS constant defines the minimum
number of rings which the application may specify for the destination end
before a predictive telephone call is classified as "no answer". |
Fields inherited from interface javax.telephony.Call |
ACTIVE, IDLE, INVALID |
Method Summary | |
Connection[] |
connectPredictive(Terminal originatorTerminal,
Address originatorAddress,
java.lang.String destination,
int connectionState,
int maxRings,
int treatment,
int endpointType)
Places a predictive telephone call. |
java.lang.Object |
getApplicationData()
Returns the application-specific data associated with the Call. |
CallCenterTrunk[] |
getTrunks()
Returns an array of all CallCenterTrunks currently being
used for this Call. |
void |
setApplicationData(java.lang.Object data)
This method associates application specific data with a Call. |
Methods inherited from interface javax.telephony.Call |
addCallListener, addObserver, connect, getCallCapabilities, getCallListeners, getCapabilities, getConnections, getObservers, getProvider, getState, removeCallListener, removeObserver |
Field Detail |
public static final int MIN_RINGS
CallCenterCall.MIN_RINGS
constant defines the minimum
number of rings which the application may specify for the destination end
before a predictive telephone call is classified as "no answer".public static final int MAX_RINGS
CallCenterCall.MIN_RINGS
constant defines the minimum
number of rings which the application may specify for the destination end
before a predictive telephone call is classified as "no answer".public static final int ANSWERING_TREATMENT_PROVIDER_DEFAULT
public static final int ANSWERING_TREATMENT_DROP
public static final int ANSWERING_TREATMENT_CONNECT
public static final int ANSWERING_TREATMENT_NONE
public static final int ENDPOINT_ANSWERING_MACHINE
public static final int ENDPOINT_FAX_MACHINE
public static final int ENDPOINT_HUMAN_INTERVENTION
public static final int ENDPOINT_ANY
Method Detail |
public Connection[] connectPredictive(Terminal originatorTerminal, Address originatorAddress, java.lang.String destination, int connectionState, int maxRings, int treatment, int endpointType) throws ResourceUnavailableException, PrivilegeViolationException, InvalidPartyException, InvalidArgumentException, InvalidStateException, MethodNotSupportedException
Connection.CONNECTED
or Connection.ALERTING
state. The destination Connection is created first, and the originating
Connection is created only if the destination reaches the designated
state. This method returns successfully when both Connections are created
and returned.
Call.connect()
method. They represent the desired originating
and destination ends of the Call. The originating Terminal may be
null
, however, for certain types of Addresses, such as ACD
Addresses, this argument may be null
. The destination address
string given must be complete and valid.
Connection.CONNECTED
or
Connection.ALERTING
. If the destination Connection never
reaches this state, this method throws an appropriate exception.
CallCenterCall.MIN_RINGS
(2) and
CallCenterCall.MAX_RINGS
(15).
Call.connect()
. The
originating Connection moves into the Connection.CONNECTED
state when an originating party is placed on the Call. If the target state
for the destination Connection is Connection.ALERTING
, it
moves into the Connection.CONNECTED
state when the called
party answers the Call.
Pre-conditions
originatorTerminal
- The originating Terminal. If the originating
Address is an ACD Address, for example, this value may be null.originatorAddress
- The originating Address of the telephone call.destination
- The complete and valid telephone address string.connectionState
- The target state for the destination Connection
before the originating Connection is created. This must either be
Connection.CONNECTED or Connection.ALERTINGmaxRings
- The maximum number of rings before classifying the Call as
"no answer".treatment
- The treatment of the Call when the endpoint is detected.endpointType
- The permitted answering endpoint type.ResourceUnavailableException
- An internal resource necessary
for placing the phone call is unavailable.PrivilegeViolationException
- The application does not have
the proper authority to place a telephone call.InvalidPartyException
- Either the originator or the destination
does not represent a valid party required to place a telephone call.InvalidArgumentException
- An argument provided is not valid
either by not providing enough information or is inconsistent with another
argument.InvalidStateException
- Either the Provider is not in service or
the Call is not idle.MethodNotSupportedException
- The implementation does not support
this method.public void setApplicationData(java.lang.Object data) throws ResourceUnavailableException, InvalidArgumentException, InvalidStateException, MethodNotSupportedException
null
, the current application data (if any)
is removed.
In the case that a Call is transfered or conferenced, the application data from the Call from which the conference or transfer is invoked will be retained.
Pre-conditions:
data
- The data to be associated with the call.ResourceUnavailableException
- An internal resource necessary
for adding the data was unavailable. For example, the size of the Object
was not supported by the implementation.InvalidArgumentException
- The argument provided is not valid.
For example, the implementation does not support the specific object type.InvalidStateException
- Either the Provider was not in service
or the Call was not active or idle.MethodNotSupportedException
- The implementation does not support
this method.CallCentCallAppDataEv
public java.lang.Object getApplicationData() throws MethodNotSupportedException
null
is there is no associated data.
MethodNotSupportedException
- The implementation does not
support this method.public CallCenterTrunk[] getTrunks() throws MethodNotSupportedException
CallCenterTrunks
currently being
used for this Call. If there are no trunks being used for this Call, this
method returns null. Each trunk returns by this method will be in the
CallCenterTrunk.VALID
state.
Post-conditions:
MethodNotSupportedException
- The implementation does not
support this method.
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |