Previous PageTable Of Contents../index.htmlIndexNext Page

fx_originate( )

Description | Cautions | Example | Errors | See Also

Name:

int fx_originate(int dev, int mode)

Inputs:

int dev

  fax channel device handle

 

int mode

  asynchronous/synchronous

Returns:

0 on success
-1 on failure

Includes:

srllib.h
dxxxlib.h
faxlib.h

Category:

originate fax

Mode:

synchronous/asynchronous

Top Of PageDescription

The fx_originate( ) function allows the DCS on hold feature to be used. The function results in a TFX_ORIGINATE or TFX_FAXERROR event, and the command can be stopped by fx_stopch( ).

Upon receipt of a TFX_ORIGINATE event, an fx_sendfax( ) should follow, and the application can call ATFX_BSTAT( ) and access FC_REMOTEID, fx_getDIS( ), fx_getNSF( ), ATFX_SPEED( ), ATFX_CODING( ), ATFX_ECM( ). All functions are filled with DF_DIS (Digital Identification Signal) values to avoid having to decode the DIS frame. Values are updated later, during the fx_sendfax( ), with DF_DCS (Digital Command Signal) values. When the fx_sendfax( ) is issued, the file/image format can be specified, including JPEG. See 7.6.2. Using the Fax API Library for Color Fax for additional information on sending JPEGs.

Parameter

Description

dev:

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

mode:

The operation mode specifies whether the function should run asynchronously or synchronously.

 

EV_ASYNC

  Run asynchronously. Returns -1 to indicate failure to initiate. Returns 0 to indicate successful initiation and generates a TFX_ORIGINATE message once the DIS is detected, or TFX_FAXERROR if it is not detected.

 

EV_SYNC

  Run synchronously. Returns 0 on success and -1 on failure.

Top Of PageCautions

Top Of PageExample

Top Of PageErrors

TFX_ORIGINATE

Successful fax origination

TFX_FAXERROR

Error in processing

EFX_UNSUPPORTED

Unsupported function. This error returned if this function is attempted on a non-DM3 board

Refer to the error type tables found in the Fax Software Reference. Error defines can be found in faxlib.h.

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