Previous PageTable Of Contents../index.htmlIndexNext Page

ATFX_PHDCMD( )

Description | Example | Errors

Name:

long ATFX_PHDCMD(dev)

Inputs:

int dev

fax channel device handle

Returns:

Phase D command after TFX_PHASED event if successful

AT_FAILURE if error

Includes:

srllib.h

dxxxlib.h

faxlib.h

Category:

extended attribute

Mode:

synchronous

 

Top Of PageDescription

The ATFX_PHDCMD( ) function returns the Phase D command. The following are valid Phase D command values:

DFS_EOP

End of Procedure -- Terminate fax session. Progress to Phase E and disconnect fax call.

DFS_MPS

Multi-Page Signal -- End of current fax document page, more fax data to follow. Next fax document page is in the same format as the current page, so proceed directly to Phase C.

DFS_EOM

End of Message -- End of current fax document page, more fax data to follow. Return to Phase B and negotiate parameters for next fax document page.

DFS_POLL

A poll request was sent

DFS_PRI_EOP

Request for operator intervention sent (PRI_EOP)

DFS_PRI_MPS

Request for operator intervention sent (PRI_MPS)

DFS_PRI_EOM

Request for operator intervention sent (PRI_EOM)

See Appendix B for Phase D command details.

 

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 D of the T.30 protocol.

To monitor the Phase D commands, you must enable Phase D events and issue ATFX_PHDCMD( ) when the TFX_PHASED event occurs. Note that since Phase D also occurs at the end of a send or receive when a Phase D event is not generated, you can also issue this function after a TFX_FAXSEND or TFX_FAXRECV event.

The final Phase D command value returned by ATFX_PHDCMD( ) at the end of a fax session remains available to the application until a new send or receive is initiated on that channel.

NOTE:
Between multiple Phase D completions during the same fax session, ATFX_PHDCMD( ) returns the previously completed Phase D command information.

Top Of PageExample

Top Of PageErrors

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


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