Previous PageTable Of Contents../index.htmlIndexNext Page

dt_xmitalrm( )

Description | Cautions | Example | Errors | See Also

Name:

int dt_xmitalrm(devh, alrmtype, state)

Inputs:

int devh

  Digital Network Interface logical board device handle

 

unsigned char alrmtype

  T-1 or E-1 alarm type

 

unsigned int state

  enable or disable sending the alarm

Returns:

0 on success
-1 on failure

Includes:

srllib.h
dtilib.h

Category:

Alarm

Mode:

synchronous

Top Of PageDescription

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

 

  YELLOW - T-1 only

 

  BLUE - T-1 only

 

  DEA_REMOTE - E-1 only

 

  DEA_UNFRAMED1 (unframed all 1s) - E-1 only

 

  DEA_SIGNALALL1 (signaling all 1s) - E-1 only

 

  DEA_DISTANTMF (distant multiframe alarm) - E-1 only

state:

Specifies whether to enable or disable transmission of the specified alarm:

 

  DTIS_DISABLE - disable transmission of alarm

 

  DTIS_ENABLE - enable transmission of alarm

Top Of PageCautions

  1. This function will fail under the following conditions:
  2. Transmission of alarms requires that the proper alarm mode is set by the dt_setalrm( ) function.
  3. The alarm type transmitted must correspond to the type of network circuit you are using (either T-1 or E-1).

Top Of PageExample

Top Of PageErrors

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.

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated November, 2001