(Page 1 of 1 in this chapter) Version
Appendix E
NaturalFax Parameters
- Introduction
- NFX_TRANSMIT_PARMS
- Dependent Functions
- Related Data Structure
- NFX_TRANSMIT_PARMS Fields
- NFX_RECEIVE_PARMS
- Dependent Functions
- Related Data Structure
- NFX_RECEIVE_PARMS Fields
- NFX_DOC_PARMS
- Dependent Function
- Related Data Structures
- NFX_DOC_PARMS Fields
- NFX_CONVERT_PARMS
- Dependent Function
- Related Data Structures
- NFX_CONVERT_PARMS Fields
Introduction
- NaturalFax stores its parameters in data structures. The following sections describe each parameter in NFX_TRANSMIT_PARMS, NFX_RECEIVE_PARMS, NFX_DOC_PARMS, and NFX_CONVERT_PARMS. Each section lists the functions that are affected by the specified parameter structure, shows the data structure, and provides detailed information about each parameter in the structure. The parameters are listed in alphabetical order.
- The following CT Access functions obtain or modify parameter information:
- ctaSetParmByName modifies a single field for a given parameter name.
- ctaGetParmInfo retrieves a parameter field definition.
- ctaGetParms returns parameter values for a given parameter structure.
- ctaRefreshParms resets the values of all context parameters on a CTA
context to the global defaults.
- For more information about parameter management in CT Access, see the CT Access Developer's Reference Manual.
NFX_TRANSMIT_PARMS
- The parameters in NFX_TRANSMIT_PARMS control the behavior of a fax transmission, including characteristics such as file encoding formats and resolution.
Dependent Functions
nfxSendFax
Related Data Structure
typedef struct
{
DWORD size;
DWORD modemtype;/* NFX_MODEM_TYPE_V17. NFX_MODEM_TYPE_V33, */
/* NFX_MODEM_TYPE_V27, or NFX_MODEM_TYPE_V29 */
DWORD minrate; /* NFX_BIT_RATE_2400, NFX_BIT_RATE_4800, */
/* NFX_BIT_RATE_7200, or NFX_BIT_RATE_9600 */
DWORD resolution;
/* NFX_RESOLUTION_HIGH, NFX_RESOLUTION_LOW or */
/* NFX_RESOLUTION_SUPER_HIGH */
DWORD encoding; /* NFX_ENCODE_1D, NFX_ENCODE_2D, or */
/* NFX_ENCODE_MMR */
DWORD pagewidth;/* NFX_PAGE_WIDTH_A4, NFX_PAGE_WIDTH__B4, or */
/* NFX_PAGE_WIDTH_A3 */
DWORD OTFmode; /* NFX_OTF_NEVER, NFX_OTF_ALWAYS, */
/* or NFX_OTF_ONLY_IF_FAIL */
DWORD useECM; /* NFX_YES or NFX_NO */
DWORD useCNG; /* NFX_YES or NFX_NO */
DWORD PRIenabled;
/* NFX_YES or NFX_NO */
DWORD timeout; /* number of seconds to wait for receiver */
DWORD retrainaction;
/* NFX_RTN_REPEAT_PAGE or NFX_RTN_NEXT_PAGE */
DWORD addheader;/* NFX_YES, NFX_NO or NFX_CUSTOM */
INT32 level; /* transmit level in tenths of dBm (-150 to -60)*/
INT32 threshold;/* lowest lev. for receive, in tenths of dBm */
DWORD NSFlength;/* length of NSF field or 0 if none */
char SID[NFX_MAX_SID]; /* Subscriber ID string */
BYTE NSF[NFX_MAX_NSF]; /* default NSF for session */
char custom_header[NFX_MAX_HEADER];
/* customizable fax header */
} NFX_TRANSMIT_PARMS;
NFX_TRANSMIT_PARMS Fields
- The NFX_TRANSMIT_PARMS structure contains the following fields:
addheader
custom_header
encoding
level
minrate
modemtype
|
Type
|
DWORD
|
|
Units
|
None.
|
|
Default Value
|
NFX_MODEM_TYPE_V17
|
|
Allowed Values
|
NFX_MODEM_TYPE_V27, NFX_MODEM_TYPE_V29, NFX_MODEM_TYPE_V17
|
|
Description
|
Specifies the preferred modem that can be selected for fax transmissions. Specifying a preferred modem sets an upper limit on the set of modems NaturalFax will consider when trying to match the receiving fax terminal's capabilities.
The following modems support the following rates of data transmission:
· V.17 supports 7200, 9600, 12,000, and 14,400 bps
· V.29 supports 7200 and 9600 bps
· V.27ter supports 2400 and 4800 bits per second (bps)
If NaturalFax drops to a modem type that supports lower transmission rates, it will attempt to use the highest rate for that modem type. If the transmitting fax terminal receives a "retrain negative" from the receiving fax terminal, and it is already using the rate specified by minrate, NaturalFax continues to use the rate specified by minrate.
If the transmitting fax terminal receives a "retrain negative" from the receiving fax terminal, NaturalFax attempts to use a lower transmission rate for the current modem. If the original rate is the lowest rate for the current modem, NaturalFax will attempt to use the modem that supports the next lowest transmission rate that is still at or above the minrate value.
|
NSF
NSFlength
OTFmode
pagewidth
PRIenabled
resolution
retrainaction
SID
threshold
timeout
useCNG
useECM
NFX_RECEIVE_PARMS
- The NFX_RECEIVE_PARMS structure controls the behavior of fax reception, including characteristics such as the maximum data rate and the resolution that will be accepted by the receiving fax terminal.
Dependent Functions
nfxSendFax
Related Data Structure
typedef struct
{
DWORD size;
DWORD modemtype; /* NFX_MODEM_TYPE_V27 or NFX_MODEM_TYPE_V29. */
/* Advertised capabilities for fax receiver */
DWORD minrate; /* NFX_BIT_RATE_2400, NFX_BIT_RATE_4800, */
/* NFX_BIT_RATE_7200, or NFX_BIT_RATE_9600 */
DWORD resolution; /* NFX_RESOLUTION_HIGH, NFX_RESOLUTION_LOW, */
/* NFX_RESOLUTION_SUPER_HIGH */
DWORD encoding; /* NFX_ENCODE_1D, NFX_ENCODE_2D, */
/* NFX_ENCODE_MMR, or NFX_ENCODE_TIFF_S */
DWORD pollingenabled; /* NFX_YES or NFX_NO */
DWORD badlineaction; /* NFX_BAD_LINE_ACTION_NONE, */
/* NFX_BAD_LINE_ACTION_DROP, */
/* NFX_BAD_LINE_ACTION_REPT, or */
/* NFX_BAD_LINE_ACTION_TICK */
DWORD pagewidth; /* NFX_PAGE_WIDTH_A4. NFX_PAGE_WIDTH__B4, or */
/* NFX_PAGE_WIDTH_A3 */
DWORD OTFmode; /* NFX_OTF_NEVER, NFX_OTF_ALWAYS, or */
/* NFX_OTF_ONLY_IF_FAIL */
DWORD useECM; /* NFX_YES or NFX_NO */
DWORD lineerrors; /* % line errors before retrain negative */
INT32 level; /* transmit lev. in tenths of dBm (-150 to -60) */
INT32 threshold; /* lowest level for receive, in tenths of dBm */
DWORD NSFlength; /* Length of NSF field or 0 if none */
char SID[NFX_MAX_SID]; /* Subscriber ID string */
BYTE NSF[NFX_MAX_NSF]; /* default NSF for session */
} NFX_RECEIVE_PARMS;
NFX_RECEIVE_PARMS Fields
- The NFX_RECEIVE_PARMS structure contains the following fields:
badlineaction
encoding
level
lineerrors
minrate
modemtype
|
Type
|
DWORD
|
|
Units
|
None.
|
|
Default Value
|
NFX_MODEM_TYPE_V29
|
|
Allowed Values
|
NFX_MODEM_TYPE_V29, NFX_MODEM_TYPE_V27, NFX_MODEM_TYPE_V17
|
|
Description
|
Allows the user to specify the maximum modem capabilities that will be advertised when receiving a fax. Specifying a preferred modem sets an upper limit on the set of modems NaturalFax will advertise. AG 2000, AG 4000, and QX boards are capable of V.17 receive. AG-8, AG-T1, AG-E1, Dual T, Dual E, Quad T, Quad E, and AG-24+/30/48/60 boards are not capable of V.17 receive.
The following modems support the following rates of data transmission:
· V.27 ter supports 2400 and 4800 bps
· V.29 supports 7200 and 9600 bps
· V.17 supports 14400, 12000, 9600, and 7200 bps
|
NSF
NSFlength
OTFmode
|
Type
|
DWORD
|
|
Units
|
None.
|
|
Default Value
|
NFX_OTF_NEVER
|
|
Allowed Values
|
NFX_OTF_NEVER, NFX_OTF_ALWAYS, NFX_OTF_ONLY_IF_FAIL
|
|
Description
|
Specifies when to perform on-the-fly conversion during a fax receive operation. On-the-fly (OTF) conversion modifies the stored fax document's format (its encoding, resolution, and/or page size) before storing it in a TIFF-F file. If OTF is enabled, the actual format stored depends on the value for this parameter. When receiving a fax, set this parameter to NFX_OTF_NEVER or NFX_OTF_ONLY_IF_FAIL to disable on-the-fly conversion and minimize CPU usage. Set to NFX_OTF_ALWAYS to always perform a conversion.
If OTFmode is NFX_OTF_NEVER, and you set the receive parameters to output a TIFF-S document, the advertised parameters for document reception will be those specified by TIFF-S. These parameters are 1D encoding, low resolution and A4 pagewidth.
If OTFmode is NFX_OTF_ALWAYS, and you set the receive parameters to output a TIFF-S file, the receiver will advertise parameters of MMR (if ECM is enabled) or MR encoding, low resolution and A4 pagewidth to potentially speed up transmission. Conversion to TIFF-S will take place on the receiver after the document has been received.
|
pollingenabled
resolution
SID
threshold
useECM
NFX_DOC_PARMS
- The NFX_DOC_PARMS structure specifies details about each document to be enqueued, including encoding format and page width.
Dependent Function
Related Data Structures
typedef struct
{
DWORD size; /* size of this structure */
DWORD resolution; /* NFX_RESOLUTION_HIGH, NFX_RESOLUTION_LOW */
/* or NFX_RESOLUTION_SUPER_HIGH */
DWORD encoding; /* NFX_ENCODE_1D, NFX_ENCODE_2D or */
/* NFX_ENCODE_MMR */
DWORD pagewidth; /* NFX_PAGE_WIDTH_A4, NFX_PAGE_WIDTH_B4 or */
/* NFX_PAGE_WIDTH_A3 */
} NFX_DOC_PARMS;
NFX_DOC_PARMS Fields
- The NFX_DOC_PARMS structure contains the following fields:
encoding
pagewidth
resolution
NFX_CONVERT_PARMS
- The NFX_CONVERT_PARMS structure specifies attributes which are used by nfxConvertFileDirect.
Dependent Function
Related Data Structures
typedef struct
{
DWORD size;
DWORD type; /* NFX_TIFF_F or NFX_TIFF_S */
DWORD resolution; /* NFX_RESOLUTION_HIGH, NFX_RESOLUTION_LOW, */
/* or NFX_RESOLUTION_SUPER_HIGH */
DWORD encoding; /* NFX_ENCODE_1D, NFX_ENCODE_2D, */
/* NFX_ENCODE_MMR, or NFX_ENCODE_TIFF_S */
DWORD pagewidth; /* NFX_PAGE_WIDTH_A4, NFX_PAGE_WIDTH_B4 */
/* or NFX_PAGE_WIDTH_A3 */
DWORD badlineaction;/* NFX_BAD_LINE_ACTION_NONE, */
/* NFX_BAD_LINE_ACTION_DROP, */
/* NFX_BAD_LINE_ACTION_REPT, or */
/* NFX_BAD_LINE_ACTION_TICK */
} NFX_CONVERT_PARMS;
NFX_CONVERT_PARMS Fields
- The NFX_CONVERT_PARMS structure contains the following fields:
badlineaction
encoding
pagewidth
resolution
type
(Page 1 of 1 in this chapter) Version
tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights
reserved.