Re: uugetty answer the phone at the 3rd ring?

Geof Goodrum (ggoodrum@perigee.ncdc.noaa.gov)
Thu, 7 Aug 1997 09:15:06 -0400 (EDT)


On Wed, 6 Aug 1997, Song HU wrote:

> Hi, I am trying to setup a dailin protocol for my Linux Redhat 4.0. What I did
> is described as following.
> but everytime I got a voice call, my computer get it before me. Could I setup
> to let the uugetty answer my call after 3rd ring?
>
> My modem is logicode 33H-V-P. which is a standard modem.
>
> I doubt:
> 1. DELAY=1 is too small, but I set to 10, still the same.
> 2. S0 in INIT string. I set to 3 , still got the phone at the first ring.
>
> Installation Steps:
<deleted>

The problem lies in 'WAITFOR=RING' and 'CONNECT="" ATA\r CONNECT\s\A'.
This lets getty control the line instead of the modem; when it detects
'RING', getty picks up the line without any delay. To let the modem
handle picking up the line (and obey your S0=3 setting), you want to
remove the WAITFOR line completely, add ATA to your modem INIT string, and
remove ATA\r from the CONNECT line.

Also, if your modem/cable supports hardware handshaking (CTS/RTS), you
might want to remove the autobauding feature ('CONNECT\s\A') and configure
your inittab to use the highest fixed rate your modem supports (currently
you have F38400). You'll also need to configure your serial port to lock
at this rate. See the Serial HOWTO for more information.

BTW, my getty_ps uses config files in /etc/conf.uugetty.ttyS1, and no
longer uses /etc/default per the getty_ps FSSTD compile-time option. Did
you make a typo listing your config files, or does your getty_ps really
use /etc/config.uugetty.ttyS1 (in which case /etc/default/uugetty.<line>
isn't used).

DISCLAIMER: The comments above are my own and may not represent the views
of my employer.
+-------------------------------+-------------------------------------------+
: Geoffrey P. Goodrum : US Department of Commerce :
: +1-301-457-5100 : NOAA/NESDIS National Climatic Data Center :
: ggoodrum@perigee.ncdc.noaa.gov: Satellite Services Branch :
+-------------------------------+-------------------------------------------+