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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ATDX_CONNTYPE( ) — return the connection type <strong>for</strong> a completed call<br />

ATDX_CONNTYPE( )<br />

return the connection type <strong>for</strong> a completed call<br />

Name: long ATDX_CONNTYPE(chdev)<br />

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

Returns: connection type if success<br />

AT_FAILURE if error<br />

Includes: srllib.h<br />

dxxxlib.h<br />

Category: Extended Attribute<br />

Mode: synchronous<br />

� Description<br />

The ATDX_CONNTYPE( ) function returns the connection type <strong>for</strong> a completed call on the<br />

channel device chdev. Use this function when a CR_CNCT (called line connected) is returned by<br />

ATDX_CPTERM( ) after termination of dx_dial( ) with call progress analysis enabled.<br />

See the <strong>Voice</strong> <strong>API</strong> Programming Guide <strong>for</strong> more in<strong>for</strong>mation about call progress analysis.<br />

Parameter Description<br />

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

using dx_open( )<br />

Possible return values are the following:<br />

CON_CAD<br />

Connection due to cadence break<br />

CON_PVD<br />

Connection due to positive voice detection<br />

CON_PAMD<br />

Connection due to positive answering machine detection<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 />

32 <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!