mgetty ringback problem
"Stephen R. Platt" (srp@unlinfo.unl.edu)
Mon, 22 Jun 1998 21:37:17 +0200
Good day,
I've recently started using mgetty.1.1.9, and like it very much. However,
I am having one problem right now. Because of my office situation, I am
forced to use one phone line for both voice mail and my modem. So, I've
tried to set up the RINGBACK feature in mgetty. This doesn't seem to quite
work.
On the first call, mgetty doesn't pick up. This works correctly. However,
the second call will always be picked up, regardless of how much time I
wait between calls. In the mgetty.config file I have the following:
ringback y
ringback-time 60
rings 1
My understanding is that if the second call arrives within 60 seconds of
the first call, then mgetty picks up. Otherwise, mgetty resets and the
process starts over again.
Am I doing something wrong?
Relevant information:
modem=Hayes Accura 336/56K
OS=Redhat Linux 5.0
mgetty log file:
06/22 12:20:22 yS0 mgetty: experimental test release 1.1.9-Aug17
06/22 12:20:22 yS0 check for lockfiles
06/22 12:20:22 yS0 checklock: no active process has lock, will remove
06/22 12:20:22 yS0 locking the line
06/22 12:20:22 yS0 makelock(ttyS0) called
06/22 12:20:22 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
06/22 12:20:22 yS0 lock made
06/22 12:20:23 yS0 tio_get_rs232_lines: status: RTS CTS DSR DTR
06/22 12:20:23 yS0 lowering DTR to reset Modem
06/22 12:20:23 yS0 tss: set speed to 115200 (10002)
06/22 12:20:23 yS0 tio_set_flow_control( HARD )
06/22 12:20:23 yS0 waiting for line to clear (VTIME), read:
06/22 12:20:24 yS0 send: \dATQ0V1H0[0d]
06/22 12:20:24 yS0 waiting for ``OK''
06/22 12:20:24 yS0 got: [0d][0a]OK ** found **
06/22 12:20:24 yS0 send: ATS0=0Q0&D3&C1[0d]
06/22 12:20:24 yS0 waiting for ``OK''
06/22 12:20:24 yS0 got: [0d]
06/22 12:20:24 yS0 CND: OK[0a]ATQ0V1H0[0d]
06/22 12:20:24 yS0 CND: ATQ0V1H0[0d][0a]OK ** found **
06/22 12:20:24 yS0 waiting for line to clear (VTIME), read:
[0d][0a]ATS0=0Q0&D3&C1[0d][0d][0a]OK[0d][0a]
06/22 12:20:24 yS0 removing lock file
06/22 12:20:24 yS0 waiting...
06/22 12:24:07 yS0 select returned 1
06/22 12:24:07 yS0 checking lockfiles, locking the line
06/22 12:24:07 yS0 makelock(ttyS0) called
06/22 12:24:07 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
06/22 12:24:07 yS0 lock made
06/22 12:24:07 yS0 waiting for ``RING''
06/22 12:24:07 yS0 got: [0d]
06/22 12:24:07 yS0 CND: OK[0a]RING ** found **
06/22 12:24:07 yS0 waiting for ``RING''
06/22 12:24:07 yS0 got: [0d]
06/22 12:24:07 yS0 CND: RING[0a]
06/22 12:25:44 yS0 timeout in chat script, waiting for `RING'
06/22 12:25:44 yS0 ringback: phone stopped after 1 RINGs, waiting for re-ring
06/22 12:25:44 yS0 waiting for ``RING''
06/22 12:25:44 yS0 got: [0a]RING ** found **
06/22 12:25:44 yS0 send: ATA[0d]
06/22 12:25:44 yS0 waiting for ``CONNECT''
06/22 12:25:44 yS0 got: [0d]
06/22 12:25:44 yS0 CND: RING[0a]ATA[0d]
06/22 12:25:44 yS0 CND: ATA[0d][0a]CONNECT ** found **
06/22 12:25:58 yS0 send:
06/22 12:25:58 yS0 waiting for ``_''
06/22 12:25:58 yS0 got: 19200 V42bis[0d]
06/22 12:25:58 yS0 CND: CONNECT 19200 V42bis
06/22 12:25:58 yS0 CND: found: 19200 V42bis[0a] ** found **
06/22 12:25:58 yS0 waiting for line to clear (VTIME), read:
06/22 12:25:58 yS0 looking for utmp entry... (my PID: 4520)
06/22 12:25:58 yS0 utmp + wtmp entry made
06/22 12:25:59 yS0 tio_set_flow_control( HARD )
06/22 12:25:59 yS0 print welcome banner (/etc/issue)
06/22 12:25:59 yS0 getlogname (AUTO_PPP), read:srp[0d]
06/22 12:26:02 yS0 input finished with '\r', setting ICRNL ONLCR
06/22 12:26:02 yS0 tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
06/22 12:26:02 yS0 login: use login config file
/etc/mgetty+sendfax/login.config
06/22 12:26:02 yS0 match: user='srp', key=''
06/22 12:26:02 yS0 match: user='srp', key='/FIDO/'
06/22 12:26:02 yS0 match: user='srp', key=''
06/22 12:26:02 yS0 match: user='srp', key=''
06/22 12:26:02 yS0 match: user='srp', key='*'*** hit!
06/22 12:26:02 yS0 calling login: cmd='/bin/login', argv[]='login srp'
06/22 12:26:02 ##### data dev=ttyS0, pid=4520, caller=none, conn='19200
V42bis', name='', cmd='/bin/login', user='srp'
06/22 12:26:02 yS0 setenv: 'CALLER_ID=none'
06/22 12:26:02 yS0 setenv: 'CONNECT=19200 V42bis'
-----------------------------------------------------
Stephen R. Platt
Polar Ice Coring Office
Snow & Ice Research Group
University of Nebraska-Lincoln
2255 W Street, Suite 101
Lincoln, NE 68583-0850
Tel: 402-472-9868
FAX: 402-472-9832
email: srp@unl.edu