call back
Mirko Zeibig (mirko.zeibig@gmx.de)
Wed, 23 Dec 1998 14:50:29 +0100
Alexandre Dulaunoy wrote:
>
> Hello,
>
> is there a easy way to make a call back with mgetty ?
>
> somebody connect to mgetty (and log to a certain username), run a script
> (or something else), the line is drop & mgetty call back the personn.
>
> is it possible ?
>
> thanks.
Hello Alexandre,
maybe this helps
Mirko
--- FORWARDED ---
From: "Christoph Hoelscher" <c.hoelscher@teutonia.de>
Newsgroups: de.alt.comm.mgetty
Subject: mgetty with and without recall. (Befor RE: can I use mgettty as
an NT-RAS Server with callback)
Lines: 115
Mirko Zeibig schrieb in Nachricht <7394q9$f57$1@sapa.inka.de>...
>Hello Christoph,
>would you mind publishing your serverscript and mgetty-config-entries in
>this newsgroup as well, which I think would be of common interest.
>Thanks
>Mirko
>
OK her it is:
Modem: ELSA Microlink 56k V.90
==========================================================
for the Linux-System
mgetty-version 1.1.8-Jul27
in /etc/mgetty+sendfax
mgetty.config:
speed 115200
modem-type data
data-only
debug 4
rings 2
callback.config:
dialout-devices ttyS1
retry-time 20
max-time 120
debug 9
dial-prefix ATX3DT
login.config:
cbusername - - /usr/sbin/callback -l ttyS1 -s 115200
callbacktelnr.
/AutoPPP/ - - /usr/sbin/pppd -d -detach /dev/ttyS1
* - - /bin/false
in /etc/ppp
options.ttyS1
/dev/ttyS1
crtscts
xxx.xxx.xxx.xxx: (the IP-Adress of you Modem)
modem
asyncmap 0
+chap \__ i use chap
-pap /
auth
proxyarp
-defaultroute
lock
login
chap-secrets
username * password xxx.xxx.xxx.xxx (the
IP-adress of the user)
===============================================================
For the MS-DOS System's
and this is the MS-DFUE-Script:
----------------------------------------------------------------------------
---------------------------------------
proc main
waitfor "login:" until 10
if FALSE == $SUCCESS then
goto error
endif
transmit "cb"
transmit $USERID
transmit "^M"
waitfor "callback" until 10
if FALSE == $SUCCESS then
goto error
endif
delay 25
waitfor "CONNECT" until 60
if FALSE == $SUCCESS then
goto error
endif
goto continue
error:
transmit "+++"
delay 3
transmit "AT&C1&D2S0=0^M"
delay 1
transmit "AT&F0^M"
set screen keyboard on
halt
continue:
endproc
----------------------------------------------------------------------------
-------------------------------------------
In the Modem-Extra-Configuration : &C0S0=1
==================================================================
Now I have the possibility the individual user the recall function to
assign
(login.config)
in which I place in front the actual user name "cb".
In addition, other users without recall can be accepted.
C.Hoelscher