Dialogic 05-0867-005 Table Top Game User Manual


 
cc_GetANI( ) retrieves Automatic Number Identification (ANI) information
80
Name:
int cc_GetANI(crn, ani_buf)
Inputs:
CRN crn
call reference number
char *ani_buf
pointer to buffer where ANI will be
stored
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
Optional call handling
Mode:
synchronous
Technology:
BRI/2; BRI/SC; PRI (all protocols)
!
! !
!
Description
The cc_GetANI( ) function retrieves Automatic Number Identification (ANI)
information (the calling party number) received in the ISDN setup message. The
data returned is 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 to be
stored.
!
! !
!
Cautions
Make sure the size of ani_buf is sufficient for the ANI string. Refer to the file
cclib.h for the maximum allowable string defined by CC_ADDRSIZE. Typically,
ANI strings are 4 to 20 characters long. CC_ADDRSIZE should be used to define
the size of the buffer.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include "srllib.h"
#include "dtilib.h"
#include "cclib.h"
void main()
{
LINEDEV devhdl = 0;