Previous PageTable Of Contents../index.htmlIndexNext Page

gfqSubmitPlist( )

Description | Example

Name:

int gfqSubmitPlist (char *gfqFileName, GFQRECORD *qrec, char *phonelist);

Inputs:

char *gfqFileName

  • A pointer to the name of the Queue File.

GFQRECORD *qrec

  • A pointers to a queue record.

char *phonelist

  • A pointer to the name of the file containing the list of phone numbers.

Outputs:

None

 

Returns:

GFQSUCCESS

  • The submission was successful.

GFQFILE_BUSY

  • The Queue File is locked by another task.

GFQFILE_CREATE_ERROR

  • Unable to create the new Queue File.

GFQFILE_INCOMPATIBLE

  • The Queue File version is incompatible with this version of the GDK software.

GFQFILE_NOTFOUND

  • The Queue File was not found.

GFQSUCCESS

  • Unable to open the Queue File.

GFQFILE_BUSY

  • Unable to create a new queue record.

GFQFILE_CREATE_ERROR

  • The phone list cannot be opened.

Includes:

gfq.h

 

Top Of PageDescription

The gfqSubmitPlist( ) function submits a fax for each entry in a phone list.

This function starts fax broadcasting by submitting records to the Pending List for an entire phone list. The phone-list file is automatically opened, processed, and closed. gfqSubmitPlist( ) writes a record for each phone number from the phone list into the Pending List of the Queue File.

The operation field of the queue record determines the action to be taken on each record submitted, such as Dial and Send, Dial and Receive, or Answer Immediately. The queue record is inserted into the Pending List if the operation field of the record has the values between GFQDIAL_SEND and GFQLAST_OPERATION. If the operation for a record is appropriate, gfqSubmitPlist( ) calls gfqInsertPlist( ) and passes the record, specifying the Pending List as the target. The caller should verify that the phone-list file exists and is correctly formatted. See gfqInsertPlist( ) for the phone-record format.

These fields of the queue record are set to their defaults in the phone list: 30 seconds for cd_timeout and GFQMAX_RATE bps for trans_rate.

Top Of PageExample


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