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.


Variable Index

 o ALL_CALLS
Forwarding filter: apply instruction to all incoming calls
 o EXTERNAL_CALLS
Forwarding filter: apply instruction to calls originating from outside the provider domain
 o FORWARD_ON_BUSY
Forwarding type: forward calls on busy
 o FORWARD_ON_NOANSWER
Forwarding type: forward calls on no answer
 o FORWARD_UNCONDITIONALLY
Forwarding type: forward calls unconditionally
 o INTERNAL_CALLS
Forwarding filter: apply instruction to calls originating from the provider domain
 o SPECIFIC_ADDRESS
Forwarding filter: apply instruction to calls originating from a specific address

Constructor Index

 o CallControlForwarding()

Method Index

 o CallControlForwarding(String)
This constructor is the default constructor, which only takes the address to apply this forwarding instruction.
 o CallControlForwarding(String, int)
This constructor takes the address to apply this forwarding instruction and the type of fowarding for all incoming calls.
 o 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.
 o 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.
 o getDestinationAddress()
Returns the destination address of this forwarding instruction.
 o getFilter()
Returns the filter of this forwarding instruction.
 o getSpecificCaller()
If the filter for this forwarding instruction is SPECIFIC_ADDRESS, then this method returns that calling address to which this filter applies.
 o getType()
Returns the type of this forwarding instruction, either unconditionally, upon no answer, or upon busy.

Variables

 o ALL_CALLS
  public final static int ALL_CALLS
Forwarding filter: apply instruction to all incoming calls
 o INTERNAL_CALLS
  public final static int INTERNAL_CALLS
Forwarding filter: apply instruction to calls originating from the provider domain
 o EXTERNAL_CALLS
  public final static int EXTERNAL_CALLS
Forwarding filter: apply instruction to calls originating from outside the provider domain
 o SPECIFIC_ADDRESS
  public final static int SPECIFIC_ADDRESS
Forwarding filter: apply instruction to calls originating from a specific address
 o FORWARD_UNCONDITIONALLY
  public final static int FORWARD_UNCONDITIONALLY
Forwarding type: forward calls unconditionally
 o FORWARD_ON_BUSY
  public final static int FORWARD_ON_BUSY
Forwarding type: forward calls on busy
 o FORWARD_ON_NOANSWER
  public final static int FORWARD_ON_NOANSWER
Forwarding type: forward calls on no answer

Constructors

 o CallControlForwarding
  public CallControlForwarding()

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o getDestinationAddress
  public String getDestinationAddress()
Returns the destination address of this forwarding instruction.

Returns:
The destination address of this forwarding instruction.
 o 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.
 o 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.
 o 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