hp.opencall.media.signalling
Interface RoutingPlan

All Superinterfaces:
hp.opencall.media.platform.Role

public interface RoutingPlan
extends hp.opencall.media.platform.Role

The RoutingPlan interface supplies the way to define the correlation between called number and ISUP Destination Point Code (DPC) required during the setup of any outgoing call.
OCMP includes an implemented RoutingPlan known as hp.opencall.media.signalling.NormalRoutingPlan.

The ISUPExternalRoutingPlan need to be subclassed if a specific routing plan is required.


Method Summary
 void add(java.lang.String anaddress, long aDPC)
          Add a new entry in the routing plan.
 long getDPCvalue(hp.opencall.media.common.Address called)
          Return the DPC which allows to reach a E.164 Address in the routing plan
 void remove(java.lang.String anaddress)
          Remove an address from the routing plan.
 

Method Detail

getDPCvalue

public long getDPCvalue(hp.opencall.media.common.Address called)
                 throws hp.opencall.media.mgtapi.NoSuchInstance,
                        hp.opencall.media.common.ResourceNotSupportedException
Return the DPC which allows to reach a E.164 Address in the routing plan

Parameters:
called - the called address
Returns:
one of: long DPC value NoSuchInstance if a mapping for the address could not be found. ResourceNotSupportedException if the address has a * or a #.
Throws:
hp.opencall.media.mgtapi.NoSuchInstance
hp.opencall.media.common.ResourceNotSupportedException

add

public void add(java.lang.String anaddress,
                long aDPC)
         throws DuplicateAddressFailure
Add a new entry in the routing plan.

Parameters:
anaddress - the address.
aDPC - the associated DPC.
Returns:
one of: void DuplicateAddressFailure if the address is already mapped.
Throws:
DuplicateAddressFailure

remove

public void remove(java.lang.String anaddress)
            throws hp.opencall.media.mgtapi.NoSuchInstance
Remove an address from the routing plan.

Parameters:
anaddress - the address to be removed.
Returns:
one of: void NoSuchInstance if there is no mapping for the address.
Throws:
hp.opencall.media.mgtapi.NoSuchInstance