
Description | Cautions | Example | Errors | See Also
Name: |
int dt_xmitalrm(devh, alrmtype, state) | |
Inputs: |
int devh |
|
unsigned char alrmtype |
| |
unsigned int state |
| |
Returns: |
0 on success | |
Includes: |
srllib.h | |
Category: |
Alarm | |
Mode: |
synchronous | |
The dt_xmitalrm( ) function starts and stops transmission of an alarm to a network span. For a detailed description of T-1 and E-1 alarm handling, refer to Chapter 3. Digital Telephony Overview.
Parameter |
Description |
devh: |
Specifies the valid Digital Network Interface logical board device handle returned by a call to dt_open( ) |
alrmtype: |
Specifies the T-1 or E-1 alarm type to be transmitted |
| |
| |
| |
| |
| |
| |
state: |
Specifies whether to enable or disable transmission of the specified alarm: |
| |
|
#include <windows.h> /* For Windows applications only */
#include <srllib.h>
#include <dtilib.h>
#include <errno.h>
main()
{
int devh; /* Board device handle */
/*
* Open board 1 device
*/
if ( ( devh = dt_open( "dtiB1", 0 ) ) == -1 ) {
printf( "Cannot open board dtiB1. errno = %d", errno );
exit( 1 );
}
/*
* Transmit a BLUE alarm
*/
if ( dt_xmitalrm( devh, BLUE, DTIS_ENABLE ) == -1 ) {
printf( "Error message = %s.",ATDV_ERRMSGP( devh ) );
exit( 1 );
}
.
.
.
}
If the function returns -1, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain the error code or use ATDV_ERRMSGP( ) to obtain a descriptive error message. See Appendix A - Standard Runtime Library for more information on SRL functions. The error codes returned by ATDV_LASTERR( ) are:
Error defines can be found in the file dtilib.h.
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation