Mgetty 1.1.21 Can only receive one page
lwedding@my-deja.com (lwedding@my-deja.com)
Mon, 25 Oct 1999 11:38:00 GMT
Wise ones,
I have a problem with mgetty, in that I can only receive the first
page of a fax. I also had the same problem with sendfax (v 1.0.0)
which I fixed by using the #define FAX_SEND_IGNORE_CARRIER in
policy.h. Now I have v 1.1.21 and I have set 'ignore-carrier y'
in sendfax.config, sending faxes works fine. As I mentioned the
problem is with mgetty and receiving faxes of more than one page.
I have tried both both with and without 'ignore-carrier y' in
mgetty.config, and the same problem occurs.
I am using linux 2.2.12. The modem I have is an ISA internal modem:
'Dynalink 1433VQH' fax/data modem. It reports (via ATI commands)
as Texas Instruments V2.50.
Any clues?
---mgetty.config----------
#
# mgetty configuration file
#
# this is a sample configuration file, see mgetty.info for details
#
# comment lines start with a "#", empty lines are ignored
# ----- global section -----
#
# In this section, you put the global defaults, per-port stuff is below
rings 3
# set the global debug level to "4" (default from policy.h)
debug 4
# set the local fax station id
fax-id fax-number
# access the modem(s) with 38400 bps
speed 38400
# use these options to make the /dev/tty-device owned by "uucp.uucp"
# and mode "rw-rw-r--" (0664). *LEADING ZERO NEEDED!*
#port-owner uucp
#port-group uucp
#port-mode 0664
port-owner root
port-group modem
port-mode 0660
# use these options to make incoming faxes owned by "root.uucp"
# and mode "rw-r-----" (0640). *LEADING ZERO NEEDED!*
#fax-owner root
#fax-group uucp
#fax-mode 0640
fax-group modem
# ----- port specific section -----
#
# Here you can put things that are valid only for one line, not the
others
#
# Zoom V.FX 28.8, connected to ttyS0: don't do fax, less logging
#
#port ttyS0
# debug 3
# data-only y
# some other Rockwell modem, needs "switchbd 19200" to receive faxes
# properly (otherwise it will fail with "timeout").
#
#port ttyS1
# speed 38400
# switchbd 19200
# ZyXEL 2864, connected to ttyS2: maximum debugging, grab statistics
#
#port ttyS2
# debug 8
# init-chat "" \d\d\d+++\d\d\dAT&FS2=255 OK ATN3S0=0S13.2=1 OK
# statistics-chat "" AT OK ATI2 OK
# statistics-file /tmp/statistics.2864
# modem-type cls2
# direct connection of a VT100 terminal which doesn't like DTR drops
# switchbd 19200
# ZyXEL 2864, connected to ttyS2: maximum debugging, grab statistics
#
#port ttyS2
# debug 8
# init-chat "" \d\d\d+++\d\d\dAT&FS2=255 OK ATN3S0=0S13.2=1 OK
# statistics-chat "" AT OK ATI2 OK
# statistics-file /tmp/statistics.2864
# modem-type cls2
# direct connection of a VT100 terminal which doesn't like DTR drops
#
#port ttyS3
# direct y
# speed 19200
# toggle-dtr n
port modem
modem-type c2.0
switchbd 19200
# ignore-carrier y
----end mgetty.config-------
Enclosed here is an extract from log file
-----------------------
--
10/23 06:53:57 dem mgetty: experimental test release 1.1.21-Jul24
10/23 06:53:57 dem mgetty.c compiled at Oct 22 1999, 20:27:18
10/23 06:53:57 dem user id: 0, parent pid: 1
10/23 06:53:57 dem reading configuration data for port 'modem'
10/23 06:53:57 dem reading
/usr/local/etc/mgetty+sendfax/mgetty.config...
10/23 06:53:57 dem conf lib: read: 'debug 4'
10/23 06:53:57 dem conf lib: read: 'fax-id +61 3 9889 8387'
10/23 06:53:57 dem conf lib: read: 'speed 38400'
10/23 06:53:57 dem conf lib: read: 'port-owner root'
10/23 06:53:57 dem conf lib: read: 'port-group modem'
10/23 06:53:57 dem conf lib: read: 'port-mode 0660'
10/23 06:53:57 dem conf lib: read: 'fax-group modem'
10/23 06:53:57 dem conf lib: read: 'port modem'
10/23 06:53:57 dem section: port modem, **found**
10/23 06:53:57 dem conf lib: read: 'modem-type c2.0'
10/23 06:53:57 dem conf lib: read: 'switchbd 19200'
10/23 06:53:57 dem key: 'speed', type=0, flags=3, data=38400
10/23 06:53:57 dem key: 'switchbd', type=0, flags=3, data=19200
10/23 06:53:57 dem key: 'direct', type=3, flags=1, data=FALSE
10/23 06:53:57 dem key: 'blocking', type=3, flags=1, data=FALSE
10/23 06:53:57 dem key: 'port-owner', type=1, flags=3, data=root
10/23 06:53:57 dem key: 'port-group', type=1, flags=3, data=modem
10/23 06:53:57 dem key: 'port-mode', type=0, flags=3, data=432
10/23 06:53:57 dem key: 'toggle-dtr', type=3, flags=1, data=TRUE
10/23 06:53:57 dem key: 'toggle-dtr-waittime', type=0, flags=1,
data=500
10/23 06:53:57 dem key: 'need-dsr', type=3, flags=1, data=FALSE
10/23 06:53:57 dem key: 'data-only', type=3, flags=1, data=FALSE
10/23 06:53:57 dem key: 'fax-only', type=3, flags=1, data=FALSE
10/23 06:53:57 dem key: 'modem-type', type=1, flags=3, data=c2.0
10/23 06:53:57 dem key: 'modem-quirks', type=0, flags=0, data=(empty)
10/23 06:53:57 dem key: 'init-chat', type=2, flags=1, data= \dATQ0V1H0
OK ATS0
=0Q0&D3&C1 OK
10/23 06:53:57 dem key: 'force-init-chat', type=2, flags=1, data=
\d^P^C\d\d\d
+++\d\d\d^M\dATQ0V1H0 OK
10/23 06:53:57 dem key: 'post-init-chat', type=2, flags=0,
data=(empty)
10/23 06:53:57 dem key: 'data-flow', type=4, flags=1, data=1
10/23 06:53:57 dem key: 'fax-send-flow', type=4, flags=1, data=7
10/23 06:53:57 dem key: 'fax-rec-flow', type=4, flags=1, data=7
10/23 06:53:57 dem key: 'modem-check-time', type=0, flags=1, data=3600
10/23 06:53:57 dem key: 'rings', type=0, flags=1, data=1
10/23 06:53:57 dem key: 'msn-list', type=2, flags=0, data=(empty)
10/23 06:53:57 dem key: 'get-cnd-chat', type=2, flags=0, data=(empty)
10/23 06:53:57 dem key: 'cnd-program', type=1, flags=0, data=(empty)
10/23 06:53:57 dem key: 'answer-chat', type=2, flags=1, data= ATA
CONNECT \c
10/23 06:53:57 dem key: 'answer-chat-timeout', type=0, flags=1,
data=80
10/23 06:53:57 dem key: 'autobauding', type=3, flags=1, data=FALSE
10/23 06:53:57 dem key: 'ringback', type=3, flags=1, data=FALSE
10/23 06:53:57 dem key: 'ringback-time', type=0, flags=1, data=30
10/23 06:53:57 dem key: 'ignore-carrier', type=3, flags=1, data=FALSE
10/23 06:53:57 dem key: 'issue-file', type=1, flags=1, data=/etc/issue
10/23 06:53:57 dem key: 'prompt-waittime', type=0, flags=1, data=500
10/23 06:53:57 dem key: 'login-prompt', type=1, flags=1, data=@!login:
10/23 06:53:57 dem key: 'login-time', type=0, flags=1, data=240
10/23 06:53:57 dem key: 'fido-send-emsi', type=3, flags=1, data=TRUE
10/23 06:53:57 dem key: 'login-conf-file', type=1, flags=1,
data=login.config
10/23 06:53:57 dem key: 'fax-id', type=1, flags=3, data=+61 3 9889
8387
10/23 06:53:57 dem key: 'fax-min-speed', type=0, flags=1, data=0
10/23 06:53:57 dem key: 'fax-max-speed', type=0, flags=1, data=14400
10/23 06:53:57 dem key: 'fax-server-file', type=1, flags=0,
data=(empty)
10/23 06:53:57 dem key: 'diskspace', type=0, flags=1, data=1024
10/23 06:53:57 dem key: 'notify', type=1, flags=1, data=faxadmin
10/23 06:53:57 dem key: 'fax-owner', type=1, flags=1, data=uucp
10/23 06:53:57 dem key: 'fax-group', type=1, flags=3, data=modem
10/23 06:53:57 dem key: 'fax-mode', type=0, flags=1, data=432
10/23 06:53:57 dem key: 'debug', type=0, flags=2, data=8
10/23 06:53:57 dem key: 'statistics-chat', type=2, flags=0,
data=(empty)
10/23 06:53:57 dem key: 'statistics-file', type=1, flags=0,
data=(empty)
10/23 06:53:57 dem key: 'gettydefs', type=1, flags=1, data=n
10/23 06:53:57 dem key: 'term', type=1, flags=0, data=(empty)
10/23 06:53:57 dem check for lockfiles
10/23 06:53:57 dem checklock: stat failed, no file
10/23 06:53:57 dem locking the line
10/23 06:53:57 dem makelock(modem) called
10/23 06:53:57 dem do_makelock: lock='/var/lock/LCK..modem'
10/23 06:53:57 dem lock made
10/23 06:53:57 dem tio_get_rs232_lines: status: RTS CTS DSR DTR
10/23 06:53:57 dem lowering DTR to reset Modem
10/23 06:53:58 dem tss: set speed to 38400 (017)
10/23 06:53:58 dem tio_set_flow_control( HARD )
10/23 06:53:58 dem waiting for line to clear (VTIME), read:
10/23 06:53:58 dem send: \dATQ0V1H0[0d]
10/23 06:53:58 dem waiting for ``OK''
10/23 06:53:58 dem got: ATQ0V1H0[0d]
10/23 06:53:58 dem CND: ATQ0V1H0[0d][0a]OK ** found **
10/23 06:53:58 dem send: ATS0=0Q0&D3&C1[0d]
10/23 06:53:58 dem waiting for ``OK''
10/23 06:53:58 dem got: [0d]
10/23 06:53:58 dem CND: OK[0a]ATS0=0Q0&D3&C1[0d]
10/23 06:53:58 dem CND: ATS0=0Q0&D3&C1[0d][0a]OK ** found **
10/23 06:53:59 dem mdm_send: 'AT+FCLASS=2.0'
10/23 06:53:59 dem got:[0d][0a]AT+FCLASS=2.0[0d]
10/23 06:53:59 dem mdm_command: string 'AT+FCLASS=2.0'
10/23 06:53:59 dem got:[0d][0a]OK[0d]
10/23 06:53:59 dem mdm_command: string 'OK' -> OK
10/23 06:53:59 dem mdm_send: 'AT+FAA=1;+FCR=1'
10/23 06:53:59 dem got:[0a]AT+FAA=1;+FCR=1[0d]
10/23 06:53:59 dem mdm_command: string 'AT+FAA=1;+FCR=1'
10/23 06:53:59 dem got:[0d][0a]OK[0d]
10/23 06:53:59 dem mdm_command: string 'OK' -> OK
10/23 06:53:59 dem mdm_send: 'AT+FBO=1'
10/23 06:53:59 dem got:[0a]AT+FBO=1[0d]
10/23 06:53:59 dem mdm_command: string 'AT+FBO=1'
10/23 06:53:59 dem got:[0d][0a]OK[0d]
10/23 06:53:59 dem mdm_command: string 'OK' -> OK
10/23 06:53:59 dem mdm_send: 'AT+FNR=1,1,1,0'
10/23 06:53:59 dem got:[0a]AT+FNR=1,1,1,0[0d]
10/23 06:53:59 dem mdm_command: string 'AT+FNR=1,1,1,0'
10/23 06:53:59 dem got:[0d][0a]OK[0d]
10/23 06:53:59 dem mdm_command: string 'OK' -> OK
10/23 06:53:59 dem mdm_send: 'AT+FLI="+61 3 9889 8387"'
10/23 06:53:59 dem got:[0a]AT+FLI="+61 3 9889 8387"[0d]
10/23 06:53:59 dem mdm_command: string 'AT+FLI="+fax-number"'
10/23 06:53:59 dem got:[0d][0a]OK[0d]
10/23 06:54:00 dem mdm_command: string 'OK' -> OK
10/23 06:54:00 dem mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0'
10/23 06:54:00 dem got:[0a]AT+FCC=1,5,0,2,0,0,0,0[0d]
10/23 06:54:00 dem mdm_command: string 'AT+FCC=1,5,0,2,0,0,0,0'
10/23 06:54:00 dem got:[0d][0a]OK[0d]
10/23 06:54:00 dem mdm_command: string 'OK' -> OK
10/23 06:54:00 dem waiting for line to clear (VTIME), read:
10/23 06:54:00 dem removing lock file
10/23 06:54:00 dem waiting...
10/23 06:54:20 dem select returned 1
10/23 06:54:20 dem checking lockfiles, locking the line
10/23 06:54:20 dem makelock(modem) called
10/23 06:54:20 dem do_makelock: lock='/var/lock/LCK..modem'
10/23 06:54:20 dem lock made
10/23 06:54:20 dem wfr: waiting for ``RING''
10/23 06:54:20 dem got: [0a][0d][0a]RING[0d]
10/23 06:54:20 dem CND: RING
10/23 06:54:20 dem wfr: rc=0, drn=0
10/23 06:54:20 dem send: ATA[0d]
10/23 06:54:20 dem waiting for ``CONNECT''
10/23 06:54:20 dem got: ATA[0d]
10/23 06:54:20 dem CND: OKATA[0d][0a]+FCO[0d]
10/23 06:54:25 dem CND: +FCO
10/23 06:54:25 dem found action string: ``+FCO_''
10/23 06:54:25 dem start fax receiver...
10/23 06:54:25 dem fax receiver: entry
10/23 06:54:25 dem tss: set speed to 19200 (016)
10/23 06:54:25 dem fax_wait_for(OK)
10/23 06:54:25 dem got:[0a][0a][0d][0a]+FTI:" TESTFAX
2"[0d]
10/23 06:54:27 dem fax_wait_for: string '+FTI:" TESTFAX 2"'
10/23 06:54:27 dem fax_id: '+FTI:" TESTFAX 2"'
10/23 06:54:27 dem got:[0a][0d][0a]+FCS:0,5,0,2,0,0,0,0[0d]
10/23 06:54:27 dem fax_wait_for: string '+FCS:0,5,0,2,0,0,0,0'
10/23 06:54:27 dem transmission par.: '+FCS:0,5,0,2,0,0,0,0'
10/23 06:54:27 dem got:[0a][0d][0a]OK[0d]
10/23 06:54:27 dem fax_wait_for: string 'OK'** found **
10/23 06:54:27 dem looking for utmp entry... (my PID: 957)
10/23 06:54:27 dem utmp + wtmp entry made
10/23 06:54:27 dem tio_set_flow_control( HARD XON_IN )
10/23 06:54:27 dem mdm_send: 'AT+FLO=2'
10/23 06:54:27 dem got:[0a]AT+FLO=2[0d]
10/23 06:54:27 dem mdm_command: string 'AT+FLO=2'
10/23 06:54:27 dem got:[0d][0a]OK[0d]
10/23 06:54:28 dem mdm_command: string 'OK' -> OK
10/23 06:54:28 dem fax_send: 'AT+FDR'
10/23 06:54:28 dem fax_wait_for(CONNECT)
10/23 06:54:28 dem got:[0a]AT+FDR[0d]
10/23 06:54:28 dem fax_wait_for: string 'AT+FDR'
10/23 06:54:28 dem got:[0d][0a]CONNECT[0d]
10/23 06:54:33 dem fax_wait_for: string 'CONNECT'** found **
10/23 06:54:33 dem sending DC2
10/23 06:54:33 dem fax_get_page_data: wait for EOL, got:
[0a][ff][ff][ff][ff][
ff][ff][ff][ff][ff][ff][fc][00]
10/23 06:54:33 dem fax_get_page_data: receiving
/var/spool/fax/incoming/fn810ce
fcem-TESTFAX-2.01...
10/23 06:54:55 dem fax_get_page_data: page end, bytes received: 40746
10/23 06:54:55 dem fax_wait_for(OK)
10/23 06:54:55 dem got:[0d][0a]+FPS:1,1127,0,0,0[0d]
10/23 06:54:55 dem fax_wait_for: string '+FPS:1,1127,0,0,0'
10/23 06:54:55 dem page status: +FPS:1,1127,0,0,0
10/23 06:54:55 dem 4391 lines received, 0 lines bad, 0 bytes lost
10/23 06:54:55 dem got:[0a][0d][0a]+FET:1[0d]
10/23 06:54:57 dem fax_wait_for: string '+FET:1'
10/23 06:54:57 dem got:[0a][0d][0a]OK[0d]
10/23 06:54:57 dem fax_wait_for: string 'OK'** found **
10/23 06:54:57 dem fax_send: 'AT+FDR'
10/23 06:54:57 dem fax_wait_for(CONNECT)
10/23 06:54:57 dem got:[0a]AT+FDR[0d]
10/23 06:54:57 dem fax_wait_for: string 'AT+FDR'
10/23 06:54:57 dem got:
10/23 06:56:57 dem Warning: got alarm signal!
10/23 06:56:57 dem mdm_read_byte: read returned -1: Interrupted system
call
10/23 06:56:57 dem mdm_get_line: cannot read byte, return: Interrupted
system c
all
10/23 06:56:57 dem fax receiver: hangup & end
10/23 06:56:57 dem fax_notify_mail: sending mail to: faxadmin
10/23 06:56:57 dem notify: '/usr/local/lib/mgetty+sendfax/new_fax -6 '
TESTFAX 2' 1 /var/spool/fax/incoming/fn810cefcem-TESTFAX-2.01
>/dev/console
2>&1 </dev/null'
10/23 06:56:57 ##### fax dev=modem, pid=957, caller='none', name='',
id='
TESTFAX 2', +FHNG=-06, pages=1/0, time=00:02:37
10/23 06:56:57 dem setenv: 'CALLER_ID=none'
10/23 06:56:57 dem setenv: 'CALLED_ID='
10/23 06:56:57 dem setenv: 'CONNECT='
10/23 06:56:58 dem mdm_send: 'ATH0'
10/23 06:56:58 dem got:[0d][0a]OK[0d]
10/23 06:56:58 dem mdm_command: string 'OK' -> OK
10/23 06:56:58 dem removing lock file
--
---------end log-------
Sent via Deja.com http://www.deja.com/
Before you buy.