The Dispatcher maintains in memory a status table that records the hardware setup of a specific fax channel and the processing status of fax files directed to that channel. Using the information on the status table, a status file can be created on disk that checks the state of the fax channels in a multiple-channel chassis or in multiple-chassis systems. Real-time status information can be obtained, and applications capable of response in real time can be built, using the status information.
Each chassis has only one status table and only one status file. Each fax channel in a chassis is represented by only one record in the status table or status file. When the status table is used on the chassis in which the boards are installed, the table should be used with the function gfdReadStatusMem for faster operation. The status table in memory and the status file on disk are a collection of records, one for each fax channel. That is, a chassis with four fax channels will have four records.
The format of a status record is listed in Table 38.
Table 38. Status Record Fields
Field Name |
Data Type |
Description |
int |
The physical-channel number. | |
char |
The modem_id of a fax channel. | |
int |
The internal-buffer list number for transactions addressed to this fax channel. | |
int |
Indicates the state of the fax channel. The states include "idle," "sending," "receive," "offline," "dead," "reset," and "failed." | |
int |
Not used; reserved for future use. | |
unsigned |
Not used; reserved for future use. | |
char |
Not used; reserved for future use. | |
unsigned |
Not used; reserved for future use. | |
int |
The number of files a fax channel has open. | |
int |
The system-file numbers for the files the fax channel has open. Unopened files have a 0 or -1 here. | |
char |
The filename of the last file that was successfully opened. | |
int |
The last gfxStatus returned by the fax channel. | |
int |
The last gfxState returned by the fax channel. See values in gfxstate.h. | |
int |
The country code for the fax channel. (This information is requested on startup.) | |
int |
Not used; reserved for future use. | |
int |
Contains the queue record handle for the transaction currently on the fax channel. | |
long |
Not used; reserved for future use. | |
char |
The user_id field for the transaction currently on the fax channel. | |
long |
Counts the number of outgoing transactions the fax channel has processed since the Dispatcher was last restarted. | |
long |
The number of outgoing transactions the fax channel has processed since the status file was last reset. This field is restored from the status file when status-file processing is enabled. | |
long |
Counts the number of incoming transactions the fax channel has processed since the Dispatcher was last restarted. | |
long |
Counts the number of incoming transactions the fax channel has processed since the status file was last reset. This field is restored from the status file when status-file processing is enabled. | |
long |
Counts the number of failed transactions the fax channel has processed since the Dispatcher was last restarted. Failed transactions are also counted in numSend or numReceive as appropriate. | |
long |
Counts the number of failed transactions that the fax channel has processed since the log file was last reset. This value is restored from the status file when status-file processing is enabled. Failed transactions also are counted in TotalSend or TotalReceive, as appropriate. | |
long |
Counts the number of items (pages) sent since the Dispatcher was last restarted. | |
long |
Counts the number of items (pages) received since the Dispatcher was last restarted. | |
long |
Counts the number of seconds the phone line has been off hook since the on-board software was last restarted. | |
int |
Records the speed at which the last transaction took place. This field may be useful for locating bad phone lines. | |
int |
Not used; reserved for future use. |
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation