Previous PageTable Of Contents../index.htmlIndexNext Page

ATDX_TERMMSK( )

Description | Cautions | Example | Errors | See Also

Name:

long ATDX_TERMMSK(chdev)

Inputs:

int chdev

  valid Dialogic channel device handle

Returns:

channel's last termination bitmap if successful
AT_FAILURE if error

Includes:

srllib.h
dxxxlib.h

Category:

Extended Attribute

Top Of PageDescription

The ATDX_TERMMSK( ) function returns the reason for the last I/O function termination on the channel chdev. The bitmap is reset when an I/O function terminates.

The function parameter is defined as follows:

Parameter

Description

chdev

specifies the valid channel device handle obtained when the channel was opened using dx_open( ).

Possible return values are the following:

TM_NORMTERM

TM_MAXDTMF

  • Maximum DTMF count

TM_MAXSIL

  • Maximum period of silence

TM_MAXNOSIL

  • Maximum period of non-silence

TM_LCOFF

  • Loop current off

TM_IDDTIME

  • Inter-digit delay

TM_MAXTIME

  • Maximum function time

TM_DIGIT

  • Specific digit received

TM_PATTERN

  • Pattern matched silence off

TM_USRSTOP

  • Function stopped by user

TM_EOD

  • End of Data reached on playback

TM_TONE

  • Tone-on/off event

TM_ERROR

  • I/O Device Error

Top Of PageCautions

If several termination conditions are met at the same time, several bits will be set in the termination bitmap.

Top Of PageExample

Top Of PageErrors

This function will fail and return AT_FAILURE if an invalid channel device handle is specified in chdev.

Top Of PageSee Also

Setting Termination Conditions:

Retrieving Termination Events - asynchronously:


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Dialogic Corporation
All rights reserved
This page generated February, 2002