Previous Page Table Of Contents../index.html IndexNext Page

grtSubmitFax( )

Description | Example

Name:

int grtSubmitFax (int chan, GFQRECORD *qrec)

Inputs:

int chan

  • Channel on which fax is to be sent.

GFQRECORD *qrec

  • Pointer to a queue record.

Outputs

none

 

Returns:

GRT_SUCCESS

  • Successful.

GRT_FAX_SUBMIT_FAIL

  • Fax submission failed.

Includes:

genra.h

 

Top Of PageDescription

The grtSubmitFax( ) function submits a queue record to a channel. This function sends a queue record to a given channel without using the queue file, to the dispatcher using the control pipe. If the submission is successful, GRT_SUCCESS is returned; otherwise, GRT_FAX_SUBMIT_FAIL is returned.

Top Of PageExample

The following section alphabetically lists the GFD API functions. These function calls handle event notification, remote status and control functions.


Figure 5. Event Breakpoints


Figure

Each event breakpoint may be associated to the sending side or the receiving side of a fax transmission. In the information associated with the event there may be data. The application attempts to read the gfx_rt_message, which is the largest possible message from the pipe (2048 bytes of data). There will be more or less data depending on the event. Events that are not able to respond should not be setup for response. Doing so can cause unpredictable behavior. Of the available responses, the verb response is not supported in GRT. Aborting at the Call Term break point does not abort the fax transmission at all; rather it aborts writing the queue record in the event data to the queue file on the hard disk.


Table 34. Event Breakpoints

Event

Sending/Receiving

Information with event

Able to Respond?

Available responses

Dial

Sending

Dial string

No

None

Call Pending

Receiving

Collected digits

Yes

Abort, continue, or verb

Answer

Receiving

Collected digits

Yes

Abort, continue, queue record or verb

Info Exchange

Receiving

gfx_rt_info_s or GRT_INFO_DATA

Yes

Abort or continue

DIS Received

Sending

gfx_rt_info_s or DIS string

No

None

DCS Received

Receiving

gfx_rt_info_s or DCS string

No

None

Page Break

Sending /Receiving

None

No

None

Idle

Sending /Receiving

None

No

None

Call Term

Sending /Receiving

GFQRECORD

Yes

Abort or continue

NOTE:
The GRT programming model does not support all break points and all response types covered in the GFD API. There are two additional event break points: Answer and Idle. There is also the possible response of a verb. Since this is only useful when responding to an Answer event, no additional functionality is lost.

Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2000, Dialogic Corporation
All rights reserved
This page generated January, 2002