Applications using the Caller ID feature can process Caller ID information in the following ways:
The Caller ID information is available for the call from the moment the ring event is generated (if the ring event is set in your application as stated above) until one of the following occurs:
To determine if Caller ID information has been received from the CO, before issuing a dx_gtcallid( ) or dx_gtextcallid( ) Caller ID function, check the event data in the event block. When the ring event is received, the event data field in the event block is bitmapped and indicates that Caller ID information is available when bit 0 (LSB) is set to 1. For details on the event block and function code examples, refer to the Voice Software Reference: Programmer's Guide.
Based on the Caller ID options provided by the CO and for applications that require only the calling line Directory Number (DN), issue the dx_gtcallid( ) function to get the calling line DN.
Based on the Caller ID options provided by the CO and for applications that require additional Caller ID information, issue the dx_gtextcallid( ) function for each type of Caller ID message required. As an argument in the dx_gtextcallid( ) function, the type of Caller ID message to access is specified (infotype).
The dx_wtcallid( ) function is a Caller ID Convenience function provided to allow applications to wait for a specified number of rings (as set for the ring event) and returns the calling station's Directory Number (DN).
The dx_wtcallid( ) function combines the functionality of the following:
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation