Problem with multi-page faxes
Michael Kohne (mhkohne@sonictech.com)
Tue, 24 Nov 1998 10:14:28 -0500
I've got a setup that works for single page faxes, but fails on multi-page
faxes.
Here's the log file:
--
11/24 09:08:39 sendfax: experimental test release 1.1.14-Apr02
11/24 09:08:39 sendfax.c compiled at Oct 12 1998, 20:54:18
11/24 09:08:39 sending fax to 9,9572355
11/24 09:08:39 checking f1.g3
11/24 09:08:39 checking f2.g3
11/24 09:08:39 makelock(ttyS1) called
11/24 09:08:39 do_makelock: lock='/var/lock/LCK..ttyS1'
11/24 09:08:39 lock made
11/24 09:08:39 tss: set speed to 38400 (017)
11/24 09:08:39 tio_set_flow_control( HARD )
11/24 09:08:39 yS1 fax_open_device succeeded, ttyS1 -> 4
11/24 09:08:39 yS1 reading specific data for port 'ttyS1'
11/24 09:08:39 yS1 reading /etc/mgetty+sendfax/sendfax.config...
11/24 09:08:39 yS1 conf lib: read: 'verbose y'
11/24 09:08:39 yS1 conf lib: read: 'debug 5'
11/24 09:08:39 yS1 conf lib: read: 'fax-devices ttyS1'
11/24 09:08:39 yS1 conf lib: read: 'fax-id 215-957-2355 SONIC'
11/24 09:08:39 yS1 conf lib: read: 'max-tries 3'
11/24 09:08:39 yS1 conf lib: read: 'max-tries-continue y'
11/24 09:08:39 yS1 key: 'fax-devices', type=1, flags=4, data=(ignored)
11/24 09:08:39 yS1 key: 'modem-init', type=1, flags=0, data=(empty)
11/24 09:08:39 yS1 key: 'modem-handshake', type=1, flags=0, data=(empty)
11/24 09:08:39 yS1 key: 'modem-type', type=1, flags=1, data=auto
11/24 09:08:39 yS1 key: 'modem-quirks', type=0, flags=0, data=(empty)
11/24 09:08:39 yS1 key: 'max-tries', type=0, flags=3, data=3
11/24 09:08:39 yS1 key: 'max-tries-continue', type=3, flags=3, data=TRUE
11/24 09:08:39 yS1 key: 'speed', type=0, flags=1, data=38400
11/24 09:08:39 yS1 key: 'switchbd', type=0, flags=1, data=0
11/24 09:08:39 yS1 key: 'open-delay', type=0, flags=0, data=(empty)
11/24 09:08:39 yS1 key: 'ignore-carrier', type=3, flags=1, data=FALSE
11/24 09:08:39 yS1 key: 'dial-prefix', type=1, flags=1, data=ATD
11/24 09:08:39 yS1 key: 'fax-id', type=1, flags=3, data=215-957-2355 SONIC
11/24 09:08:39 yS1 key: 'poll-dir', type=1, flags=1, data=.
11/24 09:08:39 yS1 key: 'normal-res', type=3, flags=1, data=FALSE
11/24 09:08:39 yS1 key: 'debug', type=0, flags=3, data=5
11/24 09:08:39 yS1 key: 'verbose', type=3, flags=2, data=TRUE
11/24 09:08:39 yS1 key: '', type=3, flags=1, data=FALSE
11/24 09:08:39 yS1 key: 'page-header', type=1, flags=0, data=(empty)
11/24 09:08:39 yS1 key: '', type=3, flags=1, data=FALSE
11/24 09:08:39 yS1 key: '', type=3, flags=1, data=FALSE
11/24 09:08:39 yS1 key: '', type=1, flags=1, data=
11/24 09:08:39 yS1 tss: set speed to 38400 (017)
11/24 09:08:39 yS1 mdm_send: 'ATV1Q0'
11/24 09:08:39 yS1 mdm_command: string 'ATV1Q0'
11/24 09:08:39 yS1 mdm_command: string 'OK' -> OK
11/24 09:08:39 yS1 mdm_send: 'ATI'
11/24 09:08:39 yS1 mdm_gis: string 1: '5601'
11/24 09:08:39 yS1 mdm_identify: string '5601'
11/24 09:08:39 yS1 USR Courier/Sportster 56k detected
11/24 09:08:39 yS1 mdm_send: 'ATI3'
11/24 09:08:39 yS1 mdm_gis: string 1: 'Telepath with x2 Technology
V4.3.211'
11/24 09:08:39 yS1 additional info: 'Telepath with x2 Technology V4.3.211'
11/24 09:08:39 yS1 mdm_send: 'AT+FCLASS=2.0'
11/24 09:08:39 yS1 mdm_command: string 'AT+FCLASS=2.0'
11/24 09:08:40 yS1 mdm_command: string 'OK' -> OK
11/24 09:08:40 yS1 mdm_send: 'AT+FLI="215-957-2355 SONIC"'
11/24 09:08:40 yS1 mdm_command: string 'AT+FLI="215-957-2355 SONIC"'
11/24 09:08:40 yS1 mdm_command: string 'OK' -> OK
11/24 09:08:40 yS1 mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0'
11/24 09:08:40 yS1 mdm_command: string 'AT+FCC=1,5,0,2,0,0,0,0'
11/24 09:08:40 yS1 mdm_command: string 'OK' -> OK
11/24 09:08:40 yS1 mdm_send: 'AT+FBO=0'
11/24 09:08:40 yS1 mdm_command: string 'AT+FBO=0'
11/24 09:08:40 yS1 mdm_command: string 'OK' -> OK
11/24 09:08:40 yS1 mdm_send: 'AT+FNR=1,1,1,0'
11/24 09:08:40 yS1 mdm_command: string 'AT+FNR=1,1,1,0'
11/24 09:08:40 yS1 mdm_command: string 'OK' -> OK
11/24 09:08:40 yS1 mdm_send: 'AT+FLO=2'
11/24 09:08:40 yS1 mdm_command: string 'AT+FLO=2'
11/24 09:08:41 yS1 mdm_command: string 'OK' -> OK
11/24 09:08:41 yS1 fax_send: 'ATD9,9572355'
11/24 09:08:41 yS1 fax_wait_for(OK)
11/24 09:08:41 yS1 fax_wait_for: string 'ATD9,9572355'
11/24 09:09:12 yS1 fax_wait_for: string '+FCO'
11/24 09:09:15 yS1 fax_wait_for: string '+FCI:" 2159572355"'
11/24 09:09:15 yS1 fax_id: '+FCI:" 2159572355"'
11/24 09:09:15 yS1 fax_wait_for: string '+FIS:1,5,0,2,1,0,0,4'
11/24 09:09:15 yS1 fax_wait_for: string 'OK'** found **
11/24 09:09:15 yS1 sendfax: honouring DCD (carrier) drops now
11/24 09:09:15 yS1 fax_send_page("f1.g3") started...
11/24 09:09:15 yS1 tio_set_flow_control( HARD )
11/24 09:09:15 yS1 fax_send: 'AT+FDT'
11/24 09:09:15 yS1 fax_wait_for(CONNECT)
11/24 09:09:15 yS1 fax_wait_for: string 'AT+FDT'
11/24 09:09:15 yS1 fax_wait_for: string '+FCS:1,5,0,2,0,0,0,0'
11/24 09:09:15 yS1 transmission par.: '+FCS:1,5,0,2,0,0,0,0'
11/24 09:09:22 yS1 fax_wait_for: string 'CONNECT'** found **
11/24 09:09:22 yS1 tio_set_flow_control( HARD XON_OUT )
11/24 09:09:22 yS1 sending f1.g3...
11/24 09:09:27 yS1 page complete, 13539 bytes sent
11/24 09:09:27 yS1 sending DLE ','
11/24 09:09:36 yS1 mdm_read_byte: read returned 0: Success
11/24 09:09:36 yS1 mdm_get_line: cannot read byte, return: Success
11/24 09:09:36 ##### failed transmitting f1.g3: phone="9,9572355", +FHS:-5,
dev=ttyS1, time=55s, acct=""
11/24 09:09:36 yS1 tio: cannot flush queue: Input/output error
11/24 09:09:36 yS1 fax_send: 'AT+FCLASS=0'
11/24 09:09:36 yS1 fax_send: cannot write: Input/output error
11/24 09:09:37 yS1 tio: cannot flush queue: Input/output error
11/24 09:09:37 yS1 removing lock file
The system is RedHat 5.0, with redhat's mgetty-1.1.14-5 and
mgetty-sendfax-1.1.14-5 packages installed.
The receiving fax machine is a sharp UX-600M (it's the front office fax
machine).
Single page faxes work fine, it only seems to have trouble when you want to
do a multi-page fax. You DO get the first page of the fax on the receiving
fax machine, and then you get an error report.
The description of the error message in the Sharp documentation says
'Cannot recognize the handshake signal for next page from the transmitter
side'. So it sounds like it's geting the 'next page' and then screwing it
up somehow.
The modem is the one that came with the machine we are using as a server -
The docs call it a 'Gateway Telepath with X2 Technology'. I have no real
documentation on this modem - it comes with the barest of manuals. I am
intrigued by mgetty deciding it's a courier/sportster - I guess that's who
gateway OEMs their modems from.
Any help anyone can give me as to how to debug/deal with this problem would
be greatly appreciated.
Does it seem likely that upgrading to the latest version of sendfax would
help? I can do that if needed, but not immediately (I've got executives in
the field and I don't want to mess with our working indial setup while they
aren't in house).
Thanks!
Michael Kohne
mhkohne@sonictech.com
"Evolution is God's version of domino rally"