|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.telephony.callcontrol.CallControlForwarding
The CallControlForwarding
class represents a forwarding
instruction. This instruction tells how the platform should forward
incoming telephone calls to a specific address. There are several attributes
to a forwarding instruction.
The first attribute is its type. The forwarding instruction's type tells the platform when to forward the call. There are currently three types of instructions: telling the platform to always forward incoming calls, telling the platform to forward incoming calls when the address is busy, and telling the platform to forward incoming calls when no one answers.
The second attribute of a forwarding instruction is its filter. The filter indicates which type of incoming calls this forwarding instruction should apply to. This forwarding instruction can apply to all calls, to external calls only, to internal calls only, or to a specific calling address.
Field Summary | |
static int |
ALL_CALLS
Forwarding filter: apply instruction to all incoming calls. |
static int |
EXTERNAL_CALLS
Forwarding filter: apply instruction to calls originating from outside the provider domain. |
static int |
FORWARD_ON_BUSY
Forwarding type: forward calls on busy. |
static int |
FORWARD_ON_NOANSWER
Forwarding type: forward calls on no answer. |
static int |
FORWARD_UNCONDITIONALLY
Forwarding type: forward calls unconditionally. |
static int |
INTERNAL_CALLS
Forwarding filter: apply instruction to calls originating from the provider domain. |
static int |
SPECIFIC_ADDRESS
Forwarding filter: apply instruction to calls originating from a specific address. |
Constructor Summary | |
CallControlForwarding(java.lang.String destAddress)
This constructor is the default constructor, which only takes the address to apply this forwarding instruction. |
|
CallControlForwarding(java.lang.String destAddress,
int type)
This constructor takes the address to apply this forwarding instruction and the type of forwarding for all incoming calls. |
|
CallControlForwarding(java.lang.String destAddress,
int type,
boolean internalCalls)
This constructor takes the address to apply this forwarding instruction, the type of forwarding desired for this address, and a boolean flag indicating whether this instruction should apply to internal (true) or external (false) calls. |
|
CallControlForwarding(java.lang.String destAddress,
int type,
java.lang.String caller)
This constructor takes an address to apply the forwarding instruction for a specific incoming telephone call, identified by a string address. |
Method Summary | |
java.lang.String |
getDestinationAddress()
Returns the destination address of this forwarding instruction. |
int |
getFilter()
Returns the filter of this forwarding instruction. |
java.lang.String |
getSpecificCaller()
If the filter for this forwarding instruction is SPECIFIC_ADDRESS, then this method returns that calling address to which this filter applies. |
int |
getType()
Returns the type of this forwarding instruction, either unconditionally, upon no answer, or upon busy. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ALL_CALLS
public static final int INTERNAL_CALLS
public static final int EXTERNAL_CALLS
public static final int SPECIFIC_ADDRESS
public static final int FORWARD_UNCONDITIONALLY
public static final int FORWARD_ON_BUSY
public static final int FORWARD_ON_NOANSWER
Constructor Detail |
public CallControlForwarding(java.lang.String destAddress)
destAddress
- destination address for the call forwarding operationpublic CallControlForwarding(java.lang.String destAddress, int type)
destAddress
- destination address for the call forwarding operationtype
- the type of the forwarding operationpublic CallControlForwarding(java.lang.String destAddress, int type, boolean internalCalls)
destAddress
- destination address for the call forwarding operationtype
- the type of the forwarding operationinternalCalls
- flag for internal call forwardingpublic CallControlForwarding(java.lang.String destAddress, int type, java.lang.String caller)
destAddress
- destination address for the call forwarding operationtype
- the type of the forwarding operationcaller
- the address of the incoming callerMethod Detail |
public java.lang.String getDestinationAddress()
public int getType()
public int getFilter()
public java.lang.String getSpecificCaller()
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |