can I use mgettty as an NT-RAS Server with callback ... (long
reply)
Amadeu Pi (AmadeuP@santiveri.es)
Fri, 13 Nov 1998 16:16:00 +0100
Yes you can but it is a little tricky.
Background: When you connect to a RAS Callback Server using
Dial Up Networking, RAS instructs DUN to expect a modem
hang up, then to wait for an incoming call, to answer it
and to proceed normally from that moment on.
Problem: The way this is done is another 'Undocumented Feature'
from our friends at MicroBlows. So if you try, as soon as the
server hungs up DUN complains about and ends.
Here follows what I have done:
1.- Define a new entry in login.config for each user
who is going to be called back, like
cbuser1 - - /usr/local/sbin/callback -l ttyS0 -s 57600 telno
where telno is obviously the phone number to dial to reach user1.
2.- In the windows system define a new 'Dial up Networking' connection
which uses the following script:
proc main
waitfor "login:"
transmit "cbuser1^M"
delay 15
waitfor "login:"
transmit "PPPuser^M"
delay 5
endproc
Please note that I do not use AutoPPP but a specific username which in
turn calls pppd with, among others, the '+pap login' option, so if you
use AutoPPP your script will need to be altered to wait for something
like CONNECT instead of for a second login.
Also note that neither cbuser1 nor PPPuser have passwords. If this is
not your case you will need to change the script accordingly.
After the script ends, DUN and pppd negotiate the authentication of
the username entered when you started DUN.
Obviously this script does not work for the reason stated above:
as soon as the server hangs up the script is aborted with an error.
Thus the need for the nasty and ugly third step:
3.- Instruct your modem to keep Carrier Detect up always (and to
autoanswer by the way). In NT this is done by entering : &C0&D0&S0M0S0=1
in Control Panel -> Modems -> your modem -> Properties -> Connection ->
Advanced -> Extra configuration. I don't remember where this is done in
95 but should be similar.
This is the worst way to do these but it is the only one known to me
that works. Some day when I find the time to do it I would like to try
something like: From within the script send a '+++' to de modem, send
the configuration string, go online again and once the second connection
is established return carrier detect to its normal behaviour. But right
now this is the only thing I may offer you.
Hope this helps
Amadeu
PS1: If you use 95 you will need 'Dial up Scripting Tool' in order to be
able to associate a script to a DUN connection. You can get it at the MS
web site and I believe it is also in 95 SP1.
PS2: Maybe you wonder about the need of the delays in the script. So do
I.
But the fact is that without them it did not work for me!.
PS3: I prefer Catalan over English but I think communication is easier
if we both use English instead of our preferred languages!. I am sure
this
is the reason why Gert enforces the use of English here (and I thank him
for that).
-----Original Message-----
From: Christoph Hoelscher [mailto:c.hoelscher@teutonia.de]
Sent: Tuesday, November 10, 1998 1:46 PM
To: mgetty@muc.de
Subject: can i use mgettty as an NT-RAS Server with callback from
Windows Notebooks ?
Hello
can someone help me here?
I use a Linux of 5,3 computers with an ELSA-Microlink-56k modem.
Mgetty is installed and runs also.Samba drives assemblies are
recognized.
My problem is now, I would like this computer with a recall function to
equip, thus also really only the appropriate people on this computer
come
and the firm the costs takes over.
Is there to simulate a possibility a NT-RAS server in such a way also
the
recall function to be used can?
C.Hoelscher
HP.: I prefer German language :-)