Previous PageTable Of Contents../index.htmlIndexNext Page

fx_getDIS( )

Description | Example | Errors

Name:

int fx_getDIS(dev,dis_buf)

Inputs:

int dev

fax channel device handle

DF_DIS * dis_buf

pointer to DF_DIS structure

Returns:

0 if success

-1 if failure

Includes:

srllib.h

dxxxlib.h

faxlib.h

Category:

miscellaneous

Mode:

synchronous

 

Top Of PageDescription

The fx_getDIS( ) function returns the most recent DIS message (T.30 Digital Information Signal), if available, for the specified channel.

The DIS message contains information about the receiver's capabilities. The DIS message is sent by the receiver to the transmitter as part of Phase B negotiation of a fax transfer.

NOTE:
Only use this function when your application requires specific receiver capability information provided in the DIS message. For most applications, retrieving the DIS message information is not required.

 

Parameter

Description

dev

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

dis_buf

A pointer to the DF_DIS structure where the DIS information is stored.

The most recent DIS message from the receiver is available to the application after the completion of the first Phase B negotiation. If available, the DIS message can be retrieved after each Phase B negotiation during the fx_sendfax( ), fx_rcvfax( ) or fx_rcvfax2( ) function call. The DIS 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.

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

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

For DIS 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 the following 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