Previous PageTable Of Contents../index.htmlIndexNext Page

cc_SetBilling( )

Description | Termination Events | Cautions | Example | Errors | See Also

Name:

int cc_SetBilling(crn, rate_type, ratep, mode)

Inputs:

CRN crn

  call reference number

 

int rate_type

  type of billing data

 

CC_RATE_U *ratep

  pointer to call charge rate

 

unsigned long mode

  asynchronous or synchronous

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Optional call handling

Mode:

asynchronous or synchronous

Technology:

PRI (4ESS only)

Top Of PageDescription

The cc_SetBilling( ) function sets the billing rate for AT&T Vari-A-Bill services associated with the particular call reference number, using cents as the unit. In asynchronous mode, the cc_SetBilling( ) function must be used after either CCEV_CONNECTED or CCEV_ANSWERED is received (in call state Connected). In synchronous mode, cc_SetBilling( ) must be used after successful completion of either cc_MakeCall( ) or cc_AnswerCall( ).

NOTE:
This function is specific to users of the AT&T Network's Vari-A-Bill service the AT&T network. Check with the service provider to see if this service can be used.

Parameter

Description

crn:

The call reference number. Each call needs a CRN.

rate_type:

The type of billing data. Possible values are:

  ISDN_NEW_RATE - change to different per-minute rate

  ISDN_FLAT_RATE - change to flat charge

  ISDN_PREM_CHANGE - add additional charge to the call

  ISDN_PREM_CREDIT - subtract charge from the call

ratep:

Pointer to the billing rate of the current call. The billing rate information is contained in the CC_RATE_U data structure. For a description of this structure, see Section 6.1. CC_RATE_U.

mode:

Specifies asynchronous (EV_ASYNC) or synchronous (EV_SYNC) mode.

Top Of PageTermination Events

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.

Possible error codes from the cc_SetBilling( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISBADTS

Bad time slot

ERR_ISDN_LIB | E_FB_UNAVAIL

Flex billing unavailable

ERR_ISDN_LIB | E_ISBADIF

Bad interface number

ERR_ISDN_LIB | E_ISBADCALLID

Bad call identifier

ERR_ISDN_LIB | E_ISBADPAR

Bad input parameter

NOTE:
See Section 7.2.1. Cause/Error Codes from the ISDN Firmware for information on firmware return codes that are specific to the cc_SetBilling( ) function.

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