gets the signaling information of an incoming message cc_GetSigInfo( )
153
Network Facility IE using the cc_GetCallInfo( ) function is no longer
supported.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include <srllib.h>
#include <dtilib.h>
#include <cclib.h>
#define MAX_QUEUE_SIZE 20
void main()
{
LINEDEV ldev;
char *devname = "dtiB1T1";
.
.
.
/*get line device handler */
if (cc_Open(&ldev,devname,0)<0)
{
printf("ERROR opening device : errno = %d\n", errno);
exit(1);
}
/* using cc_SetParm to set size of the buffer queue for cc_GetSigInfo */
if (cc_SetParm (ldev, RECEIVE_INFO_BUF, MAX_QUEUE_SIZE) < 0)
{
procdevfail (ldev);
exit (1);
}
.
.
.
/* Retrieve events from SRL */
FOREVER
while (1)
{
sr_waitevt(-1);
}
exit(0);
}
int evt_hdlr()
{
LINEDEV ldev = sr_getevtdev();
unsigned long *ev_datap = (unsigned long *)sr_getevtdatap();
int len = sr_getevtlen();
IE_BLK ie_blk;