lew@gsg.UUCP (Paul Lew) (09/19/87)
I am posting this for a friend who do not have Usenet access. I
was wondering if there is a 'ct' work-alike program for SUN? BTW,
they do not have Unix source license. Please send your reply by
mail, thanks in advance...
Here is the problem:
--------------------------------------------------------------------------
Help Needed: Implementing call back on SUN system
System: SUN 3/260 with mti board, SUN Unix 3.2
Function Description:
We wish to run a program permanently on dial-in-port TTY01 to
check caller's ID and get his (her) phone number from data
base and dial him (her) back on TTY02 (see diagram below).
Upon connection of dial-back, process 'getty' is expected to
be running so people at the phone number can login to the
system.
We also hope that if telephone line drops on any condition,
all the processes on TTY02 will be killed so that other people
will be able to get the login prompt upon connection on TTY02.
+--------------------------+
TTY01 ---| MODEM w/ auto answer on |<--- dial in port
+--------------------------+
+--------------------------+
TTY02 ---| MODEM w/ auto answer off |---> dial out port
+--------------------------+
What We Have Done:
We turned off TTY02 corresponding bit of configuration flag to
have the system detect the hardware carrier on the line;
rebooted the system; modified /dev to have a ttyd0 entry. We
also did all the necessary works on /etc/ttys and
/etc/gettytab.
What Now ?
We made the modem on TTY02 to answer calls (just for test).
Users can dial in, login. If phone line dropped, the login
process will be killed as we wished. (Hardware DCD were
detected by the system). But we haven't been able to send out
a dialing string to the modem on the port TTY02. We also have
tried 'tip' command, that didn't let us run 'getty' on the
port while connection's on.
Question:
- What do we have to do so we can open the modem port and write
data to it when there is no carrier signal?
- 4.3 uucp has a program called 'acucntrl' which twiddles a bit in
/dev/kmem to turn modem control on/off. Is there any public
domain program doing this for SUN?
- What other method you are using to provide security call back ?
--------------------------------------------------------------------------
--
----------------------------------------------------------------------
Paul Lew {olivea,harvard,decvax}!gsg!lew (UUCP)
General Systems Group, 51 Main Street, Salem, NH 03079 (603) 893-1000