(Page 5 of 10 in this chapter) Version


Sending a Fax: nfxsend

Name

nfxsend

Purpose

Demonstrates sending a fax. nfxsend can be used to send a fax to a fax terminal, or to the nfxrecv demonstration program.

Usage

nfxsend [options] filename1 [filename2 [ ... ]]

options are:
Option

Description

Default

-b n

Specifies the AG board number n.

0

-q

Specifies that the board is a QX 2000 board.

AG board

-s n:m

Specifies the stream and timeslot.

0:0

-r resolution

Specifies the resolution (low, high, or superhigh).

low

-e encoding

Specifies the encoding (1D, 2D, or MMR).

1D

-c mode

Specifies conversion mode:

y = yes (NFX_OTF_ALWAYS)
m = maybe (NFX_OTF_ONLY_IF_FAIL)
n = no (NFX_OTF_NEVER)

m

-p protocol

Specifies protocol (TCP name).

nocc

-d telno

Specifies the telephone number.

No default.

-w pagewidth

Specifies the page width (A4, B4, or A3).

A4

-E

Toggles using ECM mode when encoding is 1D or 2D.

Do not use ECM.

-v

Toggles verbose reporting of event information.

Non-verbose mode.

Description

nfxsend sends a fax using NaturalFax and CT Access functions. The CT Access environment is initialized and the ADI service is opened with the specified board, stream, and timeslot.

The fax document queue is created and the specified files are enqueued. Then the call is placed, the transmit parameters are set, and the fax is sent.

While waiting for the NFXEVN_SESSION_DONE event, all events are monitored, and appropriate action is taken in case the call is disconnected or a board error occurs. After the fax has been sent, the application releases the call, destroys the document queue and the event queue, and closes the CTA context.



(Page 5 of 10 in this chapter) Version


tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights reserved.