Previous PageTable Of Contents../index.htmlIndexNext Page

ATFX_CODING( )

Description | Example | Errors | See Also

Name:

long ATFX_CODING(dev)

Inputs:

int dev

fax channel device handle

Returns:

negotiated line encoding scheme if successful

AT_FAILURE if error (or if initial Phase B not completed)

Includes:

srllib.h

dxxxlib.h

faxlib.h

Category:

extended attribute

Mode:

Synchronous

 

Top Of PageDescription

The ATFX_CODING( ) function returns most recently negotiated fax encoding scheme between the transmitter and receiver for the specified fax channel.

Valid values are:

DFS_MH

Modified Huffman line encoding scheme

DFS_MR

Modified Read line encoding scheme

DFS_MMR

Modified Modified Read line encoding scheme

Parameter

Description

dev

Specifies the channel device handle for the fax channel obtained when the channel was opened.

The data provided by this function is updated each time the fax transfer completes Phase B of the T.30 protocol. After a fax session terminates, the value from the last fax transfer is available until the start of a new fax session.

To be notified when Phase B has completed, you must enable Phase B events (DF_PHASEB in the fx_rcvfax( ), fx_rcvfax2( ) or fx_sendfax( ) function) and issue ATFX_CODING( ) when the Phase B event (TFX_PHASEB) occurs.

Between multiple Phase B completions during the same fax session, ATFX_CODING( ) returns the Phase B encoding information from the previously completed Phase B negotiation.

For a receiver application, the line encoding scheme negotiated between the transmitter and receiver for the fax transfer may be different than the encoding scheme of the stored fax data.

For a transmitter application, the line encoding scheme negotiated between the transmitter and receiver for the fax transfer may be different than the encoding scheme of the stored fax data or the encoding scheme specified in the FC_TXCODING parameter. The final negotiated data transmission line encoding scheme is based on the receiver's capabilities.

Top Of PageExample

Top Of PageErrors

If one of the following conditions is present, this function fails and returns AT_FAILURE:

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

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