Getting called and calling numbers and application call data

To get called and calling numbers and application call data into your voice application, use the following Call class methods:

getDNIS()

Return type: java.lang.String

For an inbound call, this method returns the number that was called to get to this phone line (the called number).
Note: This information is only available if the connection to the telephony network provides this information, for example if a telephony service is being used or the line protocol supports DNIS. If the DNIS is not available from elsewhere, then this method returns the number configured for this phone line in the base Blueworx Voice Response system instead.
getANI()

Return type: java.lang.String

For an inbound call, this method returns the number of the party that made the call (the calling number). This information is only available if a telephony service is in use, or if the protocol on the connection to the telephone network can provide it (for example, Feature Group D).

getApplicationCallData()

Return type: java.lang.Object

This method returns application call data. This is application defined data that has been attached to the call before the call was transferred to Blueworx Voice Response.
Note: To pass on application data from this application to another Java voice application, use the Call.invokeApplication() method and specify the application data as a java.lang.Object in the second parameter of the method.
getCTIKeys()

Return type: java.lang.String

Returns the CTI keys for this call