Previous PageTable Of Contents../index.htmlIndexNext Page

dt_setidle( )

Description | Cautions | Example | Errors | See Also

Name:

int dt_setidle(devh,state)

Inputs:

int devh

  Digital Network Interface logical time slot device handle

 

unsigned int state

  idle state of time slot

Returns:

0 on success
-1 on failure

Includes:

srllib.h
dtilib.h

Category:

Time Slot Audio

Mode:

synchronous

Top Of PageDescription

The dt_setidle( ) function enables or disables transmission of a continuous stream of silence to the network for the audio portion of the specified time slot. Transmitting silence is referred to as "idling" or "inserting idle" on a time slot.

When two Digital Network Interface boards are arranged in drop-and-insert configuration, this function can be used to disable pass-through operation. Transmitting idle overrides voice data being passed between network devices on the selected time slot.

Parameter

Description

devh:

Specifies the valid Digital Network Interface logical time slot device handle returned by a call to dt_open( )

state:

Specifies whether to enable or disable the transmission of silence. The possible values are:

 

  DTIS_DISABLE - disable idling on the time slot

 

  DTIS_ENABLE - enable idling on the time slot

The default idle value transmitted is 7FH (T-1 only) or 54H (E-1 only). We recommend you initialize the device idle value to a known state before idling a time slot. The device idle value is set using the dt_setparm( ) function with the parameter DTG_IDLTYP. The values of this parameter can be set as follows:

Top Of PageCautions

This function will fail under the following conditions:

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