Previous PageTable Of Contents../index.htmlIndexNext Page

fx_initstat( )

Description | Cautions | Example | Errors

Name:

int fx_initstat(dev,state)

Inputs:

int dev

fax channel device handle

int state

initial fax state

Returns:

0 if success

-1 if failure

Includes:

srllib.h

dxxxlib.h

faxlib.h

Category:

set initial fax state

Mode:

synchronous

 

Top Of PageDescription

The fx_initstat( ) function sets the initial fax state. You must issue this function in your application to establish the initial fax state of the specified fax channel.

Following T.30 protocol, you must always initially set a caller party to be the transmitter of a fax and a called party to be the receiver of a fax.

Only use the fx_initstat( ) function prior to issuing the first send or receive function of a fax session. Once you issue the fx_initstat( ) function for a fax session, the correct fax state of the application is maintained automatically by the fax library throughout the fax session, even if turnaround polling is specified.

 

Parameter

Description

dev

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

state

Specifies the initial fax state. Valid values:

DF_RX

called application (receive state) 0

DF_TX

caller application (transmit state) 1

Top Of PageCautions

You must issue the fx_initstat( ) function before issuing the first send or receive function for a fax call to select the appropriate protocol for the fax session.

NOTE:
Existing applications that use the voice library functions dx_dial( ) and dx_wtring( ) to set the initial state will run unmodified. When developing new applications, you must use fx_initstat( ).

Top Of PageExample

Top Of PageErrors

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