hp.opencall.media.ccapi
Interface CallSpecInterface

All Known Subinterfaces:
ISDNCallSpecInterface, SIPCallSpecInterface
All Known Implementing Classes:
CallSpec, ISDNCallSpec, SIPCallSpec

public interface CallSpecInterface

Stores information needed to place the call.


Method Summary
 void addRedirectElement(RedirectElement anElement)
          Add call redirection path.
 Address getCalledAddress()
          Deprecated. use getCalledParty() instead
 SignallingParty getCalledParty()
          Called party Accessor (DNIS)
 Address getCallingAddress()
          Deprecated. use getCallingParty() instead
 SignallingParty getCallingParty()
          Calling Party accessor (ANI)
 int getCallSpecType()
          Returns the CallSpec Type
 String getProtocolName()
          return the procole name.
 String getProtocolVersion()
          return the procole version.
 RedirectElement[] getRedirectElements()
          Gives access to the redirection paths.
 boolean isIncoming()
          Returns the side from which call was originated
 void setUsedProvider(hp.opencall.media.signalling.CnxProviderIF aCnxProviderIF)
          Set in callSpec the Connection provider used
 

Method Detail

isIncoming

public boolean isIncoming()
Returns the side from which call was originated

Returns:
true if incoming call, false otherwise

getCalledAddress

public Address getCalledAddress()
Deprecated. use getCalledParty() instead

Returns the called address (DNIS) of the CallSpec.

Returns:
the called address (DNIS) of the CallSpec.

getCallingAddress

public Address getCallingAddress()
Deprecated. use getCallingParty() instead

Returns the calling address (ANI) of the CallSpec.

Returns:
the calling address (ANI) of the CallSpec OR null if the calling

getCallSpecType

public int getCallSpecType()
Returns the CallSpec Type

Returns:
a CallSpec type value according to the CallSpecType class

setUsedProvider

public void setUsedProvider(hp.opencall.media.signalling.CnxProviderIF aCnxProviderIF)
Set in callSpec the Connection provider used

Parameters:
aCnxProviderIF - specifies the Connection provider used


getCalledParty

public SignallingParty getCalledParty()
Called party Accessor (DNIS)

Returns:
hp.opencall.media.ccapi.SignallingParty

getRedirectElements

public RedirectElement[] getRedirectElements()
Gives access to the redirection paths. FromVXML: This variable is an array representing the connection redirection paths. The first element is the original called number, the last element is the last redirected number.

Returns:
RedirectElement[]

addRedirectElement

public void addRedirectElement(RedirectElement anElement)
Add call redirection path. The first element is the original called number, the last element is the last redirected number.

Parameters:
anElement -

getCallingParty

public SignallingParty getCallingParty()
Calling Party accessor (ANI)

Returns:
hp.opencall.media.ccapi.SignallingParty

getProtocolName

public String getProtocolName()
return the procole name.


getProtocolVersion

public String getProtocolVersion()
return the procole version.