Dialogic 05-0867-005 Table Top Game User Manual


 
cc_GetDNIS( ) gets the dialed number information string
112
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)
!
! !
!
Description
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.
!
! !
!
Cautions
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.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include "srllib.h"
#include "dtilib.h"
#include "cclib.h"
void main()
{
LINEDEV devhdl = 0;
CRN crn = 0;