Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetBilling( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_GetBilling(crn, billing_buf)

Inputs:

CRN crn

  call reference number

 

char *billing_buf

  pointer to billing string buffer

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Optional call handling

Mode:

synchronous

Technology:

PRI (4ESS only)

Top Of PageDescription

The cc_GetBilling( ) function gets the call charge information associated with the specified call. The billing information is in a NULL terminated ASCII string. The information is retrieved from the network.

Parameter

Description

crn:

The call reference number. Each call needs a CRN.

billing_buf:

Pointer to the buffer where the billing string will be stored. Use CC_BILLSIZE to define the buffer size.

Top Of PageCautions

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_GetBilling( ) 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

None


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