Dialogic 05-0867-005 Table Top Game User Manual


 
cc_ReqANI( ) returns the caller ID
190
Name:
int cc_ReqANI(crn, ani_buf, reqtype, mode)
Inputs:
CRN crn
call reference number
char *ani_buf
pointer to address of ANI buffer
int reqtype
type of information requested
unsigned long mode
synchronous or asynchronous
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
Optional call handling
Mode:
synchronous or asynchronous
Technology:
PRI (4ESS only)
!
! !
!
Description
The cc_ReqANI( ) function returns the caller ID for Automatic Number
Identification (ANI)-on-demand services. The caller ID is usually included in the
ISDN setup message. However, if the caller ID does not exist and the serving
network is AT&T, the driver will automatically request the caller ID from the
network if the ANI-on-demand feature is enabled. The information is returned in a
NULL terminated ASCII string.
Parameter Description
crn:
The call reference number. Each call needs a CRN.
ani_buf:
The address of the buffer where ANI information is stored.
reqtype:
The type of information requested. Possible values are:
ISDN_CPN_PREF - calling party number preferred
ISDN_BN_PREF - billing number preferred
ISDN_CPN - calling party number only
ISDN_BN - billing number only
ISDN_CA_TSC - special uses
mode:
Specifies asynchronous (EV_ASYNC) or synchronous
(EV_SYNC) mode.
The cc_ReqANI( ) function can operate as either a multitasking or non-
multitasking function. It is a multitasking function when the caller number is
offered upon request and the network provides this type of service (such as