Dialogic 05-0867-005 Table Top Game User Manual


 
retrieves call data for a GLOBAL or NULL CRN event cc_GetNonCallMsg( )
135
CCEV_INFOGLOBAL
CCEV_NOTIFYGLOBAL
CCEV_FACILITYGLOBAL
Parameter Description
devhndl:
The board device on which the GLOBAL or NULL event
occurred.
msgblkptr:
Pointer to the NONCRN_BLK data structure that contains the
information related to the GLOBAL or NULL CRN event. For a
description of the data structure, see Section
6.9. NONCRN_BLK. See the Example code below for details.
!
! !
!
Cautions
Some IEs may require a Call Reference Value (CRV) to be part of the
contents. The Call Reference, in this case, must be the Call Reference value
assigned by the network, not the Call Reference Number (CRN) that is
generated by Dialogic and retrieved using the cc_GetCRN( ) function. It is
up to the application to correctly format and order the IEs. Refer to the ISDN
Recommendation Q.931 or the switch specification of the application's ISDN
protocol for the relevant CCITT format. See the Example code for details.
In order to receive GLOBAL and NULL events, an appropriate handler must
be enabled on the board level device (see the sr_enbhdlr( ) function in the
System Runtime Library Programmer's Guide).
The information related to a GLOBAL or NULL event must be retrieved
immediately as it will be overwritten by the next event.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include "srllib.h"
#include "dtilib.h"
#include "cclib.h"
int callinfoNullHdlr( )
{
int devhndl;
int i;
NONCRN_BLK nullDataBlk;
unsigned char tmpbuf[5], sbuf[256], *sptr;
devhdnl = sr_getevtdev();