Receiving Callback Call

=?iso-8859-1?Q?Antonio_Fiol_Bonn=EDn?= (loif@dat.upc.es)
Thu, 21 Jan 1999 09:34:37 +0000


On Wed, 20 Jan 1999 bae@distech.com wrote:
> I'm sure someone must have been in similar situation
> as I'm in now. I am trying to do dialback between my=20
> office and home. In this case, I dial into the office
> machine, enter my user name and password and start
> callback. The office machine then calls me at home
> into my Linux box running mgetty. When mgetty answers,
> the office machine is supposed to send "username:"=20
> prompt then followed by "password:" to which I should
> respond accordingly to open the connection.
>=20
> Problem is how do I make mgetty when it answers the
> phone on this occasion not to send "login:" prompt
> first? Is there a way to force mgetty to launch a
> script to answer an incoming call when it detects
> "RING" from the modem?

I had the same problem and solved it as follows:

In /etc/mgetty/login.conf

Added:
cback=09=09-=09-=09/usr/sbin/callback -S myphonenumber
/AutoPPP/=09-=09-=09/usr/sbin/pppd auth -chap +pap login

In /etc/mgetty/callback.config

Have:
retry-time 30
max-time 90
(Don't know if they have any known effect. I can't recall having set
those).

I also have a standard /etc/ppp/options file.

And in /etc/ppp/pap-secrets

I restricted the users who can use ppp service by commenting the line
#* office "" *

And adding:
userwhocan    office=09"password"=09*

At home, my chat script is like this:
ABORT "VOICE"
ABORT "BUSY"
ABORT "NO DIALTONE"
ABORT "NO ANSWER"
ABORT "Access Denied"
TIMEOUT 5
'' ATZ
'OK\r\n' ATM1L1
'OK\r\n' ATDT officephonenumber
TIMEOUT 60
CONNECT \c
TIMEOUT 30
in: cback
TIMEOUT 120
"RING" ATA
"CONNECT" \c

As I have mixed "text" and text, I imagine it is not very important ;)

Hope that helps!

Note: At the office there's a Debian 2.0, and at home I use RedHat 5.0. I
know that in Debian 2.0 you can make a more elaborate chatscript that
manages possible errors better than mine. Anyway, my office box always
answers on time, and always have been able to connect.

=09Antonio Fiol Bonn=EDn
=09Students Representation
=09Telecommunication Engineering School
=09Barcelona - Spain