User`s guide

Dialogic
®
System Release 6.0 PCI for Windows
®
Release Update, Rev 62 — January 30, 2008 241
Dialogic Corporation
if( (t_GetBitMsk & MSMM_CS_IDLE) == MSMM_CS_IDLE )
printf("ms_getevtmsk(dvh:%d, MSEV_CHANSTATE, bitmsk:0x%X) - MSMM_CS_IDLE is
set\n", a_DevHdl, t_GetBitMsk);
if ( (t_GetBitMsk & MSMM_CS_OUT_OF_SERVICE) == MSMM_CS_OUT_OF_SERVICE )
printf("ms_getevtmsk(dvh:%d, MSEV_CHANSTATE, bitmsk:0x%X) - MSMM_CS_OUT_OFSERVICE
is set\n", a_DevHdl, t_GetBitMsk);
}
}
/* Process the SRL event */
long EventHandler (unsigned long temp)
{
int devh = sr_getevtdev();
long event = sr_getevttype();
unsigned short * evtdata = (unsigned short*) sr_getevtdatap();
switch(event)
{
/*… */
case MSEV_CHANSTATE :
switch(*evtdata)
{
case MSMM_CS_ALARM :
printf("MSEV_CHANSTATE(MSMM_CS_ALARM) is detected on devh:%d \n",
devh);
break;
case MSMM_CS_IDLE :
printf("MSEV_CHANSTATE(MSMM_CS_IDLE) is detected on devh:%d\n", devh);
break;
case MSMM_CS_OUT_OF_SERVICE :
printf("MSEV_CHANSTATE(MSMM_CS_OUT_OF_SERVICE) is detected on
devh:%d\n", devh);
break;
default:
printf("**Unknown EventData received...MSEV_CHANSTATE(Eventdata = 0x%x)
on %d**\n", *evtdata, devh);
break;
} /* switch event data ends */
break;
}
return 0;
}
1.66.2 Documentation
The online bookshelf provided with Dialogic
®
System Release 6.0 PCI for Windows
®
contains information about all system release features including features for application
development, configuration, administration, and diagnostics.
For more information about the Dialogic
®
MSI API, see the following documents:
Dialogic
®
Modular Station Interface API Programming Guide
Dialogic
®
Modular Station Interface API Library Reference
Note: The online bookshelf has not been updated for this feature. The following observations are
worth noting:
The descriptions of the ms_setevtmsk( ) and ms_getevtmsk( ) functions in the
Dialogic
®
Modular Station Interface API Library Reference do not currently include
information about the MSEV_CHANSTATE event.