Dialogic 05-0867-005 Table Top Game User Manual


 
cc_GetBilling( ) gets the call charge information
86
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)
!
! !
!
Description
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.
!
! !
!
Cautions
Make sure the size of billing_buf is large enough to hold the string. The
maximum string is defined by CC_BILLSIZE.
cc_GetBilling( ) may not function in all service-provider environments.
Check whether retrieving Vari-A-Bill billing information is an option with the
service provider.
The cc_GetBilling( ) function is valid only after the call is terminated and
before the cc_ReleaseCall( ) function is called.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include "srllib.h"
#include "dtilib.h"