FaxChange news Content User documentation Administrator documentation Index of terms Technical Support Search on-line

Debugging and troubleshooting

If Faxchange doesn't work correctly, you can run some of its component in debug mode. It means component doesn't run as a service but as a console application which writes messages about its work to the screen. These messages help you discover where is problem.

Content

  1. How to run Faxchange components in debug mode?
  2. How to set console window to be usable?
  3. How fax is processed during sending?
  4. How fax is processed during receiving?
  5. Special debugging options
  6. Logging of individual component's work

How to run Faxchange components in debug mode?

Most of Faxchange server components (or other UMS products) can be run in debug mode. In this mode you can see what component really does or not.

Procedure:

  1. Stop and disable service to be debugged
  2. Find EXE file for this service (converters in convert/big/bin.4/ and convert/small/bin/, other in bin/)
  3. Run EXE file with -d parameter, or -debug, debug, -c. If you use /? switch, you get help in most cases.
What you can debug and using which command line:
Service nameCommand line
Faxchange.ConvertBigfxcnvbig.exe -debug
Faxchange.Masterfxmcnv.exe -d
Faxchange.ConvertRtffxrtf.exe -debug
Faxchange.LineDrvBTfxbktr.exe -debug
Faxchange.LineDrv.TRxStreamfxboston.exe -debug
Faxchange.LineDrv2fxcls2.exe -debug *)
Faxchange.Serverfxsrvr.exe -debug
Faxchange.SysAttfxsysatt.exe -d
Faxchange.Gate.FaxfxGw2k.exe notserv Faxchange-Gate-Fax
Faxchange.Gate.Notesfxlngate.exe -debug
Faxchange.Pop3Smtpfxsmtp.exe -debug
UMS.LineDrv.CAPI_ISDNvxfxcapi.exe -debug
Faxchange.Routerfxrouter.exe -debug
Faxchange.EricssonDIRericson.exe -debug
Faxchange.MailRobotrobot.exe -d

*) if you are using more than one modem, debug mode is invoked by another way - fxcls2.exe X, where X means line number. If you have two modems, first is debugged using fxcls2.exe 0, second using fxcls2.exe 1

back to top of page


How to set console window to be usable?

Click to icon on upper left corner of command prompt window. Select Properties in displayed menu.

Set Screen Buffer Size - Height parameter on Layout tab to 9999.

Now scrollbar is created at the right window edge and window "remembers" program's output up to 9999 lines. You can mark all written text and copy it to the clipboard using Edit function in menu under corner icon.

back to top of page


How fax is processed during sending?

Fax is represented by "control" text file, usually with CTL extension and by one or more data files in all points of processing. Control file is common text file editable for example by Notepad.

Extension of control file in some folders (fax/out/, convert/in/) determines which operation with control file is in progress (see next text).

First letter of the name of the control file usually determines priority (h/n/l); files with higher priority are processed first. It allows to send a fax during processing of big faxmailing (faxmailings have automatically lowered its priority).

In mail/in/ and mail/out/ folders first letter determines which gateway should process this file (e,f = MS Exchange, l = Lotus Notes, s = SMTP/POP3).

Fax processing runs according this order:

  1. Gateway gets message from the user and save it to mail/in/ folder.
  2. Server takes message, check user's rights, moves control file to fxsrvr/tmp/ and data files to convert/in/.
  3. Server creates control files for conversion in convert/in/ and waits until conversion finishes (or processes another tasks).
  4. ConvertMaster divides data files - RTF files delivers to RTF converter, other files to converter of common documents. In both cases ConvertMaster copies data files to convert/big/in/ or convert/small/in/ and creates control files for them. Then waits until conversion finishes (or processes another tasks).
  5. Converters store their outputs to convert/small/out/ or convert/big/out/. ConvertMaster moves them from this location to convert/out/.
  6. Server moves converted documents to fax/out/. Then sends preview for user - control file is moved to fxsrvr/preview/ and preview is stored to mail/out/, where is taken by gateway.
  7. Gateway receives reply for preview from the user and save it to mail/in/ folder. Server takes it, moves CTL file from fxsrvr/preview/ to fax/out/ (if reply was "Yes, send fax") and "clones" it - creates one copy for every recipient.
  8. Line driver searches for fax/out/*.ctl files. If some file is found, renames it to *.now and tries to send a fax referenced by this file. When attempt finishes driver writes [attempt] section to the control file, which describes history of this attempt.
  9. Next processing depends on information if fax was sent or not:

back to top of page


How fax is processed during receiving?

Technology of control files etc. is the same as during fax sending.
  1. Line driver handles incoming call, receives PABX up to maximum length set in fxCfg (don't mask it). Fax and CTL are saved to fax/in/.
    Here you can discover in CTL file which PABX was physically received from phone line (PABX= item).
  2. Server takes these files, performs PABX masking, archives, prints and sends fax to final recipient according routing rules (by saving to mail/out/).

back to top of page


Special debugging options

Some services can be debugged without necessity to running in debug mode. You can direct service to create logfile via registry editing, then restart service. All registry keys will be specified relative to HKLM/software/Datasys/Faxchange key, if not specified exactly.
  1. Brooktrout driver
    This service has very rich logging options:
  2. ClassX driver
    Set value 0local/system/class2dbg to "1" (one, without quotation marks). When driver is started it creates file faxman.log in the root of system drive with debug information.
    This works only when Faxchange uses only one modem!
  3. Converters
    Set value global/system/mcnv_keep_err to "1". Now if some error occurs then ERR file remains in output folder and you can analyze it.
    Output folder for "small" converter is faxchange/convert/small/out.
    Output folder for "big" converter is faxchange/convert/big/out.

    You can also use BIG_CNV/KEEP_ERR value for big converter debugging - set 1 here to create ERR file with debug info.

  4. CAPI driver
    For driver logging create logfile (REG_SZ) value under HKLM/SOFTWARE/Datasys/UMS/drivers/vxcapi key and enter full path to logfile. Text logfile with information about CAPI driver will be created after service restart.
  5. Lotus gateway
    Automatically creates ERR files in faxchange/mail/out/err folder. You can found information about last completed operation done by gateway in this file. When gateway is correctly terminated, ERR file is deleted. In case of error file remains in the folder and you can analyze it.
    If you have gateway version 4.6.0.119 and higher, then when registry HKLM\SOFTWARE\Datasys\FaxChange\LN_GATE\KeepLog=1 (string value) all ERR files are kept, so you can trace gateway's work in detail.
  6. Exchange fax and mail gateway
    Logging of gateway 's work - in HKLM/SOFTWARE/Datasys/Faxchange/global/exchange change GwDebugMode value from zero to one. After fax and mail gateway restart log files C:\gwlog-fx-fax.log (fax gateway) and C:\mg-log-pri.txt (mailbox agent) will be generated.
  7. AD provider
    Logging of work - in HKLM/SOFTWARE/Datasys/FaxChange/install/exchange change ProviderDebug value from 0 to 1. Other settings under this key (if value doesn't exist, create it):
    LogPath - folder, where logfile fxadprovider.YYMMDD.txt is created (if logging is switched on). If LogPath value isn't filled, default location is used: path to local application settings in user's profile is read from registry value HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Local AppData and Datasys\Faxchange\log folder is created here. Path to logfile is then C:\Documents and Settings\<user>\Local Settings\Application Data\Datasys\Faxchange\log
    LogLevel - logging level, number between 1 (least) and 5 (most).
    Log will be generated when services using AD provider are restarted.
  8. Brooktrout TR10xx driver (LineDrv.TRxStream)
    Configution is stored in the registry key "HKLM\Software\Datasys\FaxChange\boston\log".
    Value Default content Description
    00_start_stop 3
    • 0 - not logged
    • 1 - log to console
    • 2 - log to file
    • 3 - log to console and file
    01_fatal 3
    02_error 3
    03_warning 3
    04_info 3
    05_debug 1
    06_trace 1
    07_BrooktroutAPI 0
    EventLogFilter 3 Events with importance lower than specified value will be logged into Windows application eventlog. Default value means 00_start_stop, 01_fatal a 02_error. 0 = no logging, 8 = log all events.
    log_filename   Log file name. If not specified, no log is created.
    log_overwrite 1 1 = old log will be rewritten by new one. Otherwise old logs are renamed by adding time of renaming to log file name.

Logging can be switched off by this way:

Now you must restart appropriate service.

back to top of page


Logging of individual component's work

From Faxchange version 6.0.35 you can force some Faxchange components to write information about its work into log files. How to switch this feature on?

Find dir item under HKLM\SOFTWARE\Datasys\FaxChange\log\system registry key. It is empty by default; set folder here, where logs will be created, e.g. D:\faxchange\etc\log\. You can also enter loglevel - create level (REG_SZ) item here, it can contain values FATAL, ERROR, WARNING, INFO, DEBUG, TRACE (sequence from lower to higher level). Now restart that Faxchange services you want to write log files.
Every component creates its own subfolder (named according table) in selected folder and writes log rrmmdd_<name>.log, where name is the same as subfolder name - see the table:
Faxchange.ConvertRTF (RTF convertor) crtf
Faxchange.Gate.Fax (fax gateway) fxgw
Faxchange.Mail.Fax (mail gateway) fxmb
Faxchange.Server (fax server) fxsv
Faxchange.ConverPrint rastiff
Faxchange.ServerPrinter (fax server printer) srpr
Faxchange.SysAtt (system attendant) ssat
Database interface fxODBC
UserManager usrMgr

Some components can store here also files with faxes, so we recommend to switch logging on only to necessary amount of time (problem detecting). To switch logging off, delete content of HKEY_LOCAL_MACHINE\SOFTWARE\Datasys\FaxChange\log\system\dir value and restart Faxchange services.

back to top of page