Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetDNIS( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_GetDNIS(crn, dnis_buf)

Inputs:

CRN crn

  call reference number

 

char *dnis_buf

  pointer to DNIS buffer

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_GetDNIS( ) function gets the dialed number information string (destination address/called party number) associated with a specific call reference number (CRN). The information is in a NULL terminated ASCII string.

Parameter

Description

crn:

The call reference number. Each call needs a CRN.

dnis_buf:

The address of the buffer where the DNIS (destination address/called party number) will be stored. Use CC_ADDRSIZE to define the size of the buffer.

Top Of PageCautions

Make sure the size of the dnis_buf is large enough to hold the DNIS. It must be no smaller than CC_ADDRSIZE. Refer to the file cclib.h for the maximum allowable string.

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_GetDNIS( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISBADCRN

Bad call reference number

ERR_ISDN_LIB | E_ISBADPAR

Bad input parameter

ERR_ISDN_LIB | E_ISNOINFOBUF

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