US Robotics question.

John Conover (john@johncon.johncon.com)
Tue, 9 Dec 1997 19:24:59 -0800


I just compiled mgetty-1.1.10 for Linux 2.0.30 using A US Robotics
33.6 Sportster Faxmodem. Dial in/out data works very nice. Receiving
faxes works very nice. But when I send a fax, it stops at the bottom
of the first page, (log is attached.)

The message from faxrunq is:

/usr/local/bin/sendfax -v 3799602 f1.g3 f2.g3 
Trying fax device '/dev/ttyS1'... OK.
Dialing 3799602... OK.
sending 'f1.g3'...

/usr/local/bin/sendfax: FAILED to transmit 'f1.g3'.
Transmission error: +FHNG:-5 (Unexpected hangup / read() error / write() error (int.))
command exited with status 12

I tried:

 #define FAXREC_FLOW FLOW_SOFT
 #define FAXSEND_FLOW FLOW_SOFT
 #define FAX_USRobotics

in policy.h, but that did not help. I tried several fax machines, and
the same thing happened. I finally tried a machine running HylaFAX,
and its log says:

 RECV FAX: T.30 T2 timeout, expected page not received (Phase D)

Are there any other fixes I have to do for USR?

  Thanks,

  John

BTW, I'm trying to replace HylaFAX since I am having a lot of trouble
with faxgetty. Mgetty seems to work very nice-excepting the sendfax(1)
problem.

-- 

John Conover, 631 Lamont Ct., Campbell, CA., 95008, USA.
VOX 408.370.2688, FAX 408.379.9602
john@johncon.com

sendfile.log:

12/09 14:41:24 sendfax: experimental test release 1.1.10-Dec07
12/09 14:41:24 sendfax.c compiled at Dec 9 1997, 10:52:47
12/09 14:41:24 sending fax to 9800626
12/09 14:41:24 checking f1.g3
12/09 14:41:24 checking f2.g3
12/09 14:41:24 checking f3.g3
12/09 14:41:24 checking f4.g3
12/09 14:41:24 makelock(ttyS1) called
12/09 14:41:24 do_makelock: lock='/var/lock/LCK..ttyS1'
12/09 14:41:24 lock made
12/09 14:41:24 tss: set speed to 38400 (017)
12/09 14:41:24 tio_set_flow_control( HARD )
12/09 14:41:24 yS1 fax_open_device succeeded, ttyS1 -> 4
12/09 14:41:24 yS1 reading specific data for port 'ttyS1'
12/09 14:41:24 yS1 reading /usr/local/lib/mgetty+sendfax/sendfax.config...
12/09 14:41:24 yS1 conf lib: read: 'verbose y'
12/09 14:41:24 yS1 conf lib: read: 'debug 5'
12/09 14:41:24 yS1 conf lib: read: 'fax-devices ttyS1'
12/09 14:41:24 yS1 conf lib: read: 'fax-id 49 89 xxxxxxxx'
12/09 14:41:24 yS1 conf lib: read: 'max-tries 3'
12/09 14:41:24 yS1 conf lib: read: 'max-tries-continue y'
12/09 14:41:24 yS1 key: 'fax-devices', type=1, flags=4, data=(ignored)
12/09 14:41:24 yS1 key: 'modem-init', type=1, flags=0, data=(empty)
12/09 14:41:24 yS1 key: 'modem-handshake', type=1, flags=0, data=(empty)
12/09 14:41:24 yS1 key: 'modem-type', type=1, flags=1, data=auto
12/09 14:41:24 yS1 key: 'modem-quirks', type=0, flags=0, data=(empty)
12/09 14:41:24 yS1 key: 'max-tries', type=0, flags=3, data=3
12/09 14:41:24 yS1 key: 'max-tries-continue', type=3, flags=3, data=TRUE
12/09 14:41:24 yS1 key: 'speed', type=0, flags=1, data=38400
12/09 14:41:24 yS1 key: 'switchbd', type=0, flags=1, data=0
12/09 14:41:24 yS1 key: 'open-delay', type=0, flags=0, data=(empty)
12/09 14:41:24 yS1 key: 'ignore-carrier', type=3, flags=1, data=FALSE
12/09 14:41:24 yS1 key: 'dial-prefix', type=1, flags=1, data=ATD
12/09 14:41:24 yS1 key: 'fax-id', type=1, flags=3, data=49 89 xxxxxxxx
12/09 14:41:24 yS1 key: 'poll-dir', type=1, flags=1, data=.
12/09 14:41:24 yS1 key: 'normal-res', type=3, flags=1, data=FALSE
12/09 14:41:24 yS1 key: 'debug', type=0, flags=3, data=5
12/09 14:41:24 yS1 key: 'verbose', type=3, flags=2, data=TRUE
12/09 14:41:24 yS1 key: '', type=3, flags=1, data=FALSE
12/09 14:41:24 yS1 key: 'page-header', type=1, flags=0, data=(empty)
12/09 14:41:24 yS1 key: '', type=3, flags=1, data=FALSE
12/09 14:41:24 yS1 key: '', type=3, flags=1, data=FALSE
12/09 14:41:24 yS1 key: '', type=1, flags=1, data=
12/09 14:41:24 yS1 tss: set speed to 38400 (017)
12/09 14:41:24 yS1 fax_send: 'ATV1Q0'
12/09 14:41:24 yS1 fax_wait_for(OK)
12/09 14:41:24 yS1 fax_wait_for: string 'ATV1Q0'
12/09 14:41:24 yS1 fax_wait_for: string 'OK'** found **
12/09 14:41:24 yS1 mdm_send: 'ATI'
12/09 14:41:24 yS1 mdm_gis: string 1: '3362'
12/09 14:41:25 yS1 mdm_identify: string '3362'
12/09 14:41:25 yS1 unknown numerical modem id 3362
12/09 14:41:25 yS1 mdm_send: 'AT+FCLASS=2.0'
12/09 14:41:25 yS1 mdm_command: string 'AT+FCLASS=2.0'
12/09 14:41:25 yS1 mdm_command: string 'OK' -> OK
12/09 14:41:25 yS1 mdm_send: 'AT+FLI="49 89 xxxxxxxx"'
12/09 14:41:25 yS1 mdm_command: string 'AT+FLI="49 89 xxxxxxxx"'
12/09 14:41:25 yS1 mdm_command: string 'OK' -> OK
12/09 14:41:25 yS1 mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0'
12/09 14:41:25 yS1 mdm_command: string 'AT+FCC=1,5,0,2,0,0,0,0'
12/09 14:41:25 yS1 mdm_command: string 'OK' -> OK
12/09 14:41:25 yS1 mdm_send: 'AT+FBO=0'
12/09 14:41:25 yS1 mdm_command: string 'AT+FBO=0'
12/09 14:41:25 yS1 mdm_command: string 'OK' -> OK
12/09 14:41:25 yS1 mdm_send: 'AT+FNR=1,1,1,0'
12/09 14:41:25 yS1 mdm_command: string 'AT+FNR=1,1,1,0'
12/09 14:41:26 yS1 mdm_command: string 'OK' -> OK
12/09 14:41:26 yS1 mdm_send: 'AT+FLO=2'
12/09 14:41:26 yS1 mdm_command: string 'AT+FLO=2'
12/09 14:41:26 yS1 mdm_command: string 'OK' -> OK
12/09 14:41:26 yS1 fax_send: 'ATD9800626'
12/09 14:41:26 yS1 fax_wait_for(OK)
12/09 14:41:26 yS1 fax_wait_for: string 'ATD9800626'
12/09 14:41:41 yS1 fax_wait_for: string '+FCO'
12/09 14:41:43 yS1 fax_wait_for: string '+FIS:1,5,0,2,1,0,1,4'
12/09 14:41:43 yS1 fax_wait_for: string 'OK'** found **
12/09 14:41:43 yS1 sendfax: honouring DCD (carrier) drops now
12/09 14:41:43 yS1 fax_send_page("f1.g3") started...
12/09 14:41:43 yS1 tio_set_flow_control( HARD )
12/09 14:41:43 yS1 fax_send: 'AT+FDT'
12/09 14:41:43 yS1 fax_wait_for(CONNECT)
12/09 14:41:43 yS1 fax_wait_for: string 'AT+FDT'
12/09 14:41:44 yS1 fax_wait_for: string '+FCS:1,5,0,2,0,0,0,0'
12/09 14:41:44 yS1 transmission par.: '+FCS:1,5,0,2,0,0,0,0'
12/09 14:41:51 yS1 fax_wait_for: string 'CONNECT'** found **
12/09 14:41:51 yS1 tio_set_flow_control( HARD XON_OUT )
12/09 14:41:51 yS1 sending f1.g3...
12/09 14:42:10 yS1 page complete, 41293 bytes sent
12/09 14:42:10 yS1 sending DLE ','
12/09 14:42:17 yS1 mdm_read_byte: read returned 0: Success
12/09 14:42:17 yS1 mdm_get_line: cannot read byte, return: Success
12/09 14:42:17 ##### failed transmitting f1.g3: phone="9800626", +FHS:-5, dev=ttyS1, time=51s, acct=""

12/09 14:42:17 yS1 tio: cannot flush queue: I/O error
12/09 14:42:17 yS1 fax_send: 'AT+FCLASS=0'
12/09 14:42:17 yS1 fax_send: cannot write: I/O error
12/09 14:42:17 yS1 tio: cannot flush queue: I/O error
12/09 14:42:17 yS1 removing lock file


.