mgetty PB

Malek Shabou (malek.shabou@nic.fr)
Tue, 22 Dec 1998 14:30:21 +0100


 Hello,
 I have i Pb with my mgetty, he do not report error to the sender. here
is an exemple, i have send a fax of 82 lines to mgetty (with sendfax) (i
have changed the min page lengh from 50 to 200 in the source code of
faxrecp.c).
 
mgetty log:
12/22 14:14:00 y00   fax_get_page_data: wait for EOL, got:
[0a]±ÃMôÏ[ff][ff][ff][ff][ff][ff][ff][ff][ff][ff
][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][f
f][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff]ð[01]Ms?[0a]lÔ[00
12/22 14:14:00 y00  fax_get_page_data: receiving
/var/spool/fax/incoming/ff67f9b0900-_+-33-1-39-63-53-94-_.
01...
12/22 14:14:00 y00  fax_get_page_data: page end, bytes received: 503
12/22 14:14:00 y00  fax_wait_for(OK)
12/22 14:14:00 y00    got:[0d][0a]+FPS:1,52,0,0,0[0d]
12/22 14:14:00 y00   fax_wait_for: string '+FPS:1,52,0,0,0'
12/22 14:14:00 y00  page status: +FPS:1,52,0,0,0
12/22 14:14:00 y00   82 lines received, 0 lines bad, 0 bytes lost
12/22 14:14:00 y00    got:[0a][0d][0a]+FET:2[0d]
12/22 14:14:01 y00   fax_wait_for: string '+FET:2'
12/22 14:14:01 y00    got:[0a][0d][0a]OK[0d]
12/22 14:14:01 y00   fax_wait_for: string 'OK'** found **
12/22 14:14:01 y00  Page doesn't look good, request retrain (MPS)
12/22 14:14:01 y00  fax_send: 'AT+FPS=2'
12/22 14:14:01 y00  fax_wait_for(OK)
12/22 14:14:01 y00    got:[0a]AT+FPS=2[0d]
12/22 14:14:01 y00   fax_wait_for: string 'AT+FPS=2'
12/22 14:14:01 y00    got:[0d][0a]ERROR[0d]
12/22 14:14:02 y00   fax_wait_for: string 'ERROR'
12/22 14:14:02 y00  ABORTING: line='ERROR'
12/22 14:14:02 y00  fax_send: 'AT+FDR'
12/22 14:14:02 y00  fax_wait_for(CONNECT): already hangup!
12/22 14:14:02 y00   fax receiver: hangup & end
12/22 14:14:02 y00   fax_notify_mail: sending mail to: fax-err@nic.fr
12/22 14:14:02 y00   notify: '/usr/local/lib/mgetty+sendfax/new_fax -4
'_+ 33 1 39 63 53 94  _' 1  /var/spo
ol/fax/incoming/ff67f9b0900-_+-33-1-39-63-53-94-_.01 >/dev/console 2>&1
</dev/null'
12/22 14:14:02 ##### fax dev=tty00, pid=21171, caller='none', name='',
id='_+ 33 1 39 63 53 94  _', +FHNG=-
04, pages=1, time=00:00:17     



sendfax log:

12/22 14:15:51 y01    got:[0a]AT&H1[0d]
12/22 14:15:51 y01   mdm_command: string 'AT&H1'
12/22 14:15:51 y01    got:[0d][0a]OK[0d]
12/22 14:15:51 y01   mdm_command: string 'OK' -> OK
12/22 14:15:51 y01  fax_send: 'ATDT5085'
12/22 14:15:51 y01  fax_wait_for(OK)
12/22 14:15:51 y01    got:[0a]ATDT5085[0d]
12/22 14:15:51 y01   fax_wait_for: string 'ATDT5085'
12/22 14:15:51 y01    got:[0d][0a]+FCO[0d]
12/22 14:16:01 y01   fax_wait_for: string '+FCO'
12/22 14:16:01 y01    got:[0a][0d][0a]+FCI:"+ 33 1 39 63 52 40  "[0d]
12/22 14:16:03 y01   fax_wait_for: string '+FCI:"+ 33 1 39 63 52 40  "'
12/22 14:16:03 y01  fax_id: '+FCI:"+ 33 1 39 63 52 40  "'
12/22 14:16:03 y01    got:[0a][0d][0a]+FIS:1,5,0,2,0,0,0,0[0d]
12/22 14:16:03 y01   fax_wait_for: string '+FIS:1,5,0,2,0,0,0,0'
12/22 14:16:03 y01    got:[0a][0d][0a]OK[0d]
12/22 14:16:04 y01   fax_wait_for: string 'OK'** found **
12/22 14:16:04 y01  sendfax: IGNORE DCD (carrier) status
12/22 14:16:04 y01   fax_send_page("../f1.g3") started...
12/22 14:16:04 y01   tio_set_flow_control( HARD )
12/22 14:16:04 y01  fax_send: 'AT+FDT'
12/22 14:16:04 y01  fax_wait_for(CONNECT)
12/22 14:16:04 y01    got:[0a]AT+FDT[0d]
12/22 14:16:04 y01   fax_wait_for: string 'AT+FDT'
12/22 14:16:04 y01    got:[0d][0a]+FCS:1,5,0,2,0,0,0,0[0d]
12/22 14:16:04 y01   fax_wait_for: string '+FCS:1,5,0,2,0,0,0,0'
12/22 14:16:04 y01  transmission par.: '+FCS:1,5,0,2,0,0,0,0'
12/22 14:16:04 y01    got:[0a][0d][0a]CONNECT[0d]
12/22 14:16:11 y01   fax_wait_for: string 'CONNECT'** found **
12/22 14:16:11 y01   tio_set_flow_control( HARD )
12/22 14:16:11 y01  sending ../f1.g3...
12/22 14:16:11 y01    read 64, write 64
12/22 14:16:11 y01   input: got [0a]
12/22 14:16:11 y01    read 64, write 65
12/22 14:16:11 y01    read 64, write 64
12/22 14:16:11 y01    read 64, write 64
12/22 14:16:11 y01    read 40, write 40
12/22 14:16:11 y01  page complete, 297 bytes sent
12/22 14:16:11 y01  sending DLE '.'
12/22 14:16:11 y01    got:[0d][0a]+FHS:00[0d]
12/22 14:16:16 y01  connection hangup: '+FHS:00'
12/22 14:16:16 y01   (Normal and proper end of connection)
12/22 14:16:16 y01    got:[0a][0d][0a]OK[0d]
12/22 14:16:16 y01  got response: 'OK'
12/22 14:16:16 y01  fax_send: 'AT+FCLASS=0'
12/22 14:16:16 y01   removing lock file
12/22 14:16:16 ##### success, phone="5085", dev=tty01, time=25s,
pages=1(+0), bytes=297, acct=""


nb: i am using USR courier modem with the last french firmware (7.2.4)


Regards,
-- 
Malek Shabou				    E-mail: Malek.Shabou@nic.fr
AFNIC France				    Tel: +33 1 39 63 50 15
c/o INRIA-Rocquencourt Domaine de Voluceau  Fax: +33 1 39 63 55 34 
B.P.105 78153 Le Chesnay Cedex