Previous PageTable Of Contents../index.htmlIndexNext Page

fx_getDCS( )

Description | Example | Errors

Name:

int fx_getDCS(dev,dcs_buf)

Inputs:

int dev

fax channel device handle

DF_DCS * dcs_buf

pointer to DF_DCS structure

Returns:

0 if success

-1 if failure

Includes:

srllib.h

dxxxlib.h

faxlib.h

Category:

miscellaneous

Mode:

synchronous

 

Top Of PageDescription

The fx_getDCS( ) function returns the most recent DCS message (T.30 Digital Command Signal), if available, for the specified channel.

Parameter

Description

dev

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

dcs_buf

A pointer to the DF_DCS structure where the DCS message information is stored.

The DCS message contains information about negotiated settings between the transmitter and receiver. The DCS message is sent by the transmitter to the receiver as part of Phase B negotiation of a fax transfer.

Use this function only when your application requires the specific Phase B negotiation information provided in the DCS message. For most applications, using fx_getDCS( ) to retrieve the DCS message information is not required because the fax extended attribute functions provide access to most of the information contained in the DCS message; see ATFX_RESLN( ), ATFX_SPEED( ), ATFX_WIDTH( ).

The most recent DCS message sent from the transmitter is available to the application after the completion of the first Phase B negotiation. If available, the DCS message can be retrieved after each Phase B negotiation during the fx_sendfax( ), fx_rcvfax( ) or fx_rcvfax2( ) function call. The DCS message information remains valid until the next Phase B negotiation is completed for the current function call or until a new send or receive is initiated.

To determine when the DCS message is available, call ATFX_BSTAT( ). This function returns a bitmap with the DFS_DCS bit set indicating that the transmitter's DCS message is available.

NOTE:
Phase B negotiation takes place at the beginning of a fax send or receive function call and after a T.30 End of Message (EOM) is sent by the transmitter station during a fax send or receive function call.

For DCS message details, see the ITU-T publication Procedures for Document Facsimile Transmission in the General Switched Telephone Network, Recommendation T.30 (see Section 1.3.2. Other Publications).

Top Of PageExample

Top Of PageErrors

ATDV_LASTERR( ) returns these fax error codes for the following reasons:

EFX_NODATA

The function is called before completion of the initial Phase B negotiation.

EFX_UNSUPPORTED

The function is called for an unsupported board.

See Appendix D for a list of error codes that may be returned for this function.


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