Class java.telephony.callcontrol.CallControlForwarding
All Packages Class Hierarchy This Package Previous Next Index
Class java.telephony.callcontrol.CallControlForwarding
java.lang.Object
|
+----java.telephony.callcontrol.CallControlForwarding
- public class CallControlForwarding
- extends Object
The CallControlForwarding class represents a "forwarding instruction".
This instruction tells how the switch should forward incoming telephone
call to a specific address. There are several attributes to a forwarding
instruction.
The first attribute is it "type". The forwarding instruction's type tells
the switch when the forward the call. There are currently three types of
instructions: telling the switch to always forwarding incoming calls,
telling the switch to forward incoming calls when the address is busy, and
telling the switch 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 should this forwarding instruction
apply. This forwarding instruction can apply to all call, to external calls
only, to internal calls only, or to a specific calling address.
-
ALL_CALLS
- Forwarding filter: apply instruction to all incoming
calls
-
EXTERNAL_CALLS
- Forwarding filter: apply instruction to calls
originating from outside the provider domain
-
FORWARD_ON_BUSY
- Forwarding type: forward calls on busy
-
FORWARD_ON_NOANSWER
- Forwarding type: forward calls on no answer
-
FORWARD_UNCONDITIONALLY
- Forwarding type: forward calls unconditionally
-
INTERNAL_CALLS
- Forwarding filter: apply instruction to calls
originating from the provider domain
-
SPECIFIC_ADDRESS
- Forwarding filter: apply instruction to calls
originating from a specific address
-
CallControlForwarding()
-
-
CallControlForwarding(String)
- This constructor is the default constructor, which only takes the
address to apply this forwarding instruction.
-
CallControlForwarding(String, int)
- This constructor takes the address to apply this forwarding instruction
and the type of fowarding for all incoming calls.
-
CallControlForwarding(String, int, boolean)
- This constructor takes the address to aplly 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(String, int, String)
- This constructor takes an address to apply the forwarding instruction
for a specific incoming telephone call, identified by a string address.
-
getDestinationAddress()
- Returns the destination address of this forwarding instruction.
-
getFilter()
- Returns the filter of this forwarding instruction.
-
getSpecificCaller()
- If the filter for this forwarding instruction is SPECIFIC_ADDRESS, then
this method returns that calling address to which this filter applies.
-
getType()
- Returns the type of this forwarding instruction, either unconditionally,
upon no answer, or upon busy.
ALL_CALLS
public final static int ALL_CALLS
- Forwarding filter: apply instruction to all incoming
calls
INTERNAL_CALLS
public final static int INTERNAL_CALLS
- Forwarding filter: apply instruction to calls
originating from the provider domain
EXTERNAL_CALLS
public final static int EXTERNAL_CALLS
- Forwarding filter: apply instruction to calls
originating from outside the provider domain
SPECIFIC_ADDRESS
public final static int SPECIFIC_ADDRESS
- Forwarding filter: apply instruction to calls
originating from a specific address
FORWARD_UNCONDITIONALLY
public final static int FORWARD_UNCONDITIONALLY
- Forwarding type: forward calls unconditionally
FORWARD_ON_BUSY
public final static int FORWARD_ON_BUSY
- Forwarding type: forward calls on busy
FORWARD_ON_NOANSWER
public final static int FORWARD_ON_NOANSWER
- Forwarding type: forward calls on no answer
CallControlForwarding
public CallControlForwarding()
CallControlForwarding
public void CallControlForwarding(String destAddress)
- This constructor is the default constructor, which only takes the
address to apply this forwarding instruction. The forwarding instruction
forwards all call unconditionally.
CallControlForwarding
public void CallControlForwarding(String destAddress,
int type)
- This constructor takes the address to apply this forwarding instruction
and the type of fowarding for all incoming calls.
CallControlForwarding
public void CallControlForwarding(String destAddress,
int type,
boolean internalCalls)
- This constructor takes the address to aplly 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
public void CallControlForwarding(String destAddress,
int type,
String caller)
- This constructor takes an address to apply the forwarding instruction
for a specific incoming telephone call, identified by a string address.
It also takes the type of forwarding desired for this specific address.
getDestinationAddress
public String getDestinationAddress()
- Returns the destination address of this forwarding instruction.
- Returns:
- The destination address of this forwarding instruction.
getType
public int getType()
- Returns the type of this forwarding instruction, either unconditionally,
upon no answer, or upon busy.
- Returns:
- The type of this forwarding instruction.
getFilter
public int getFilter()
- Returns the filter of this forwarding instruction. The filter indicates
which calls should triger this forwarding instruction. Filters include:
applying this instruction to all calls, to only internal calls, to only
external call, or for calls from a specific address.
- Returns:
- The filter for this forwarding instruction.
getSpecificCaller
public String getSpecificCaller()
- If the filter for this forwarding instruction is SPECIFIC_ADDRESS, then
this method returns that calling address to which this filter applies.
If the filter is something other than SPECIFIC_ADDRESS, this method
returns null.
- Returns:
- The specific address for this forwarding instruction.
All Packages Class Hierarchy This Package Previous Next Index