Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetANI( )

Description | Cautions | Example | Errors | See Also

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)

Top Of PageDescription

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.

Top Of PageCautions

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.

Top Of PageExample

Top Of PageErrors

If the function returns < 0 to indicate failure, use the cc_CauseValue( ) function to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be used to interpret the reason code. Error codes are defined in the files ccerr.h, isdnerr.h, and isdncmd.h.

Error codes from the cc_GetANI( ) function include the following:

Error Code

Description

E_ISBADCRN | ERR_ISDN_LIB

Bad call reference number

E_ISBADPAR | ERR_ISDN_LIB

Bad input parameter

E_ISNOINFOBUF | ERR_ISDN_LIB

Information buffer not ready

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated December, 2001