08.01.2013 Views

Voice API for HMP Library Reference - Dialogic

Voice API for HMP Library Reference - Dialogic

Voice API for HMP Library Reference - Dialogic

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ATDX_TONEID( ) — return user-defined tone ID that terminated I/O function<br />

ATDX_TONEID( )<br />

return user-defined tone ID that terminated I/O function<br />

Name: long ATDX_TONEID(chdev)<br />

Inputs: int chdev valid channel device handle<br />

Returns: user-defined tone ID if successful<br />

AT_FAILURE if error<br />

Includes: srllib.h<br />

dxxxlib.h<br />

Category: Extended Attribute<br />

Mode: synchronous<br />

� Description<br />

The ATDX_TONEID( ) function returns the user-defined tone ID that terminated an I/O function.<br />

This termination is indicated by ATDX_TERMMSK( ) returning TM_TONE.<br />

Parameter Description<br />

chdev specifies the valid channel device handle obtained when the channel was opened<br />

using dx_open( )<br />

� Cautions<br />

None.<br />

� Errors<br />

This function will fail and return AT_FAILURE if an invalid channel device handle is specified in<br />

chdev.<br />

� Example<br />

#include <br />

#include <br />

#include <br />

#define TID_1 101<br />

main()<br />

{<br />

TN_GEN tngen;<br />

DV_TPT tpt[ 5 ];<br />

int chdev;<br />

48 <strong>Voice</strong> <strong>API</strong> <strong>for</strong> <strong>HMP</strong> <strong>Library</strong> <strong>Reference</strong> — September 2004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!