Send + Receive Fax with AIX-3.2.5 (& Creatix) ?
Johannes Niggemeyer (johannes@hal.cl-ki.uni-osnabrueck.de)
Tue, 7 Mar 1995 12:28:24 +0100
Has anyone been able to run (mgetty+)sendfax successfully on AIX-3.2.5.
Currently we use mgetty-0.23 and a Creatix LC144.
Terminal Connections work well (i.e. dialing in *and* out), but neither
fax send nor receive is possible. On a Linux Box the same configuration
works very well. I tried nearly all possible settings when compiling,
but got always the same. I believe this behaviour is due to the failure
of certain ioctl operations (i.e. TXADDCD/TXDELCD). It seems there's
no reliable way to lower DTR and to disable XON/XOFF flowcontrol. IBM
has a short example program for this to do shipped with their doku
but it didn't work for me.
Following some interesting lines from mgetty.log as well as Faxlog.
******************** START mgetty.log ********************
--
03/06 19:44:24 ty1 check for lockfiles
03/06 19:44:24 ty1 locking the line
03/06 19:44:25 ty1 lowering DTR to reset Modem
03/06 19:44:26 ty1 ioctl TXADDCD/TXDELCD: Device busy
03/06 19:44:26 ty1 send: \d\d\d+++\d\d\d[0d]\dATQ0V1H0[0d]
03/06 19:44:31 ty1 waiting for ``OK'' ** found **
03/06 19:44:31 ty1 send: ATZ[0d]
03/06 19:44:31 ty1 waiting for ``OK'' ** found **
03/06 19:44:33 ty1 fax_send: 'AT+FCLASS=2.0' -> ERROR
03/06 19:44:33 ty1 fax_send: 'AT+FCLASS=2' -> OK
03/06 19:44:33 ty1 fax_send: 'AT+FCLASS=0' -> OK
03/06 19:44:34 ty1 fax_send: 'AT+FAA=1;+FCR=1' -> OK
03/06 19:44:34 ty1 fax_send: 'AT+FBOR=0' -> OK
03/06 19:44:34 ty1 fax_send: 'AT+FLID="49 541 9692580"' -> OK
03/06 19:44:35 ty1 fax_send: 'AT+FDCC=1,5,0,2,0,0,0,0' -> OK
03/06 19:44:35 ty1 waiting...
03/06 19:45:01 ty1 waiting for ``RING'' ** found **
03/06 19:45:01 ty1 waiting for ``RING'' ** found **
03/06 19:45:06 ty1 waiting for ``RING'' ** found **
03/06 19:45:11 ty1 send: ATA[0d]
03/06 19:45:11 ty1 waiting for ``CONNECT''
03/06 19:45:19 ty1 found action string: ``FAX''
03/06 19:45:19 ty1 start fax receiver...
03/06 19:45:19 ty1 fax_wait_for(OK)
03/06 19:45:27 ty1 fax_id: '+FTSI: " 49 541 969 2500"'
03/06 19:45:27 ty1 transmission par.: '+FDCS: 0,3,0,2,0,0,0,0'** found **
03/06 19:45:27 ty1 ioctl TXADDCD/TXDELCD: Device busy
03/06 19:45:27 ty1 fax_send: 'AT+FDR'
03/06 19:45:28 ty1 fax_wait_for(CONNECT)
03/06 19:45:32 ty1 fax_id: '+FTSI: " 49 541 969 2500"'
03/06 19:45:37 ty1 fax_id: '+FTSI: " 49 541 969 2500"'
03/06 19:45:44 ty1 fax_id: '+FTSI: " 49 541 969 2500"'
03/06 19:45:50 ty1 fax_id: '+FTSI: " 49 541 969 2500"'
03/06 19:45:56 ty1 fax_id: '+FTSI: " 49 541 969 2500"'
03/06 19:46:02 ty1 connection hangup: '+FHNG: 0'** found **
03/06 19:46:02 ##### fax dev=tty1, pid=17675, caller=none, name='', id=' " 49 541 969 2500"', +FHNG=000, pages=0, time=00:00:51
03/06 19:46:02 ty1 system() failed: Error 0
--
******************** END mgett.log ********************
******************** START Faxlog ********************
--
03/06 21:00:59 sending fax to 2500
03/06 21:00:59 checking f1.g3
03/06 21:00:59 makelock(tty1) called
03/06 21:00:59 do_makelock: lock='/etc/locks/LCK..tty1'
03/06 21:00:59 lock made
03/06 21:00:59 tio_set_flow_control( )
03/06 21:00:59 ioctl TXADDCD/TXDELCD: Invalid argument
03/06 21:00:59 ty1 fax_open_device succeeded, tty1 -> 4
03/06 21:00:59 ty1 fax_send: 'AT'
03/06 21:00:59 ty1 fax_wait_for(OK)
03/06 21:00:59 ty1 fax_wait_for: string 'OK'** found **
03/06 21:00:59 ty1 fax_send: 'AT+FCLASS=2.0'
03/06 21:01:00 ty1 mdm_command: string 'ERROR' -> ERROR
03/06 21:01:00 ty1 fax_send: 'AT+FCLASS=2'
03/06 21:01:00 ty1 mdm_command: string 'OK' -> OK
03/06 21:01:00 ty1 fax_send: 'AT+FLID="49 541 9692580"'
03/06 21:01:00 ty1 mdm_command: string 'OK' -> OK
03/06 21:01:00 ty1 fax_send: 'AT+FDCC=1,5,0,2,0,0,0,0'
03/06 21:01:00 ty1 mdm_command: string 'OK' -> OK
03/06 21:01:00 ty1 fax_send: 'AT+FBOR=0'
03/06 21:01:00 ty1 mdm_command: string 'OK' -> OK
03/06 21:01:00 ty1 fax_send: 'AT&K6'
03/06 21:01:01 ty1 mdm_command: string 'OK' -> OK
03/06 21:01:01 ty1 fax_send: 'ATD,2500'
03/06 21:01:01 ty1 fax_wait_for(OK)
03/06 21:01:13 ty1 fax_wait_for: string '+FCON'
03/06 21:01:15 ty1 fax_wait_for: string '+FCSI: " 49 541 969 2500"'
03/06 21:01:15 ty1 fax_id: '+FCSI: " 49 541 969 2500"'
03/06 21:01:16 ty1 fax_wait_for: string '+FDIS: 1,3,0,2,1,0,0,2'
03/06 21:01:16 ty1 fax_wait_for: string 'OK'** found **
03/06 21:01:16 ty1 fax_send_page("f1.g3") started...
03/06 21:01:16 ty1 tio_set_flow_control( )
03/06 21:01:16 ty1 ioctl TXADDCD/TXDELCD: Invalid argument
03/06 21:01:16 ty1 fax_send: 'AT+FDT'
03/06 21:01:16 ty1 fax_send: cannot write: I/O error
03/06 21:01:16 ty1 AT+FDT -> some error (-4), abort fax send!
03/06 21:01:16 ##### failed transmitting f1.g3: +FHS:-4, time=15s
03/06 21:01:16 ty1 fax_send: 'AT+FCLASS=0'
03/06 21:01:16 ty1 fax_send: cannot write: I/O error
03/06 21:01:16 ty1 removing lock file
******************** END Faxlog ********************
--
Regards, johannes.
--
*******************************************************************************
*Universitaet Osnabrueck;Institut fuer Semantische InformationsVerarbeitung *
*Johannes Niggemeyer;Sedanstrasse 4;49069 Osnabrueck;++ 49 541 969-2580(phone)*
*++ 49 541 969-2500(fax);email: johannes@hal.cl-ki.uni-osnabrueck.de *
*******************************************************************************