can I use mgettty as an NT-RAS Server with callback ... (long reply)

"Christoph Hoelscher" (c.hoelscher@teutonia.de)
Tue, 17 Nov 1998 10:01:37 +0100


With this script it works fine with /AutoPPP/
--------------
 proc main

   waitfor "login:" until 10
   if FALSE == $SUCCESS then
     goto error
   endif

   transmit "cb"
   transmit $USERID
   transmit "^M"    ; for calback users i use the string "cb" and "$USERID"
so i can use both featchers

   waitfor "callback" until 10  ; the string "callback" is sendinging from
the callback program when everything is OK for callback
   if FALSE == $SUCCESS then
     goto error
   endif

   delay 25
   waitfor "CONNECT" until 60  ;wait for callback, after 1 Minute cancel
   if FALSE == $SUCCESS then
     goto error
   endif

   goto continue

 error:
   transmit "+++"    ;reset the modem and exit
   delay 3
   transmit "AT&C1&D2S0=0^M"
   delay 1
   transmit "AT&F0^M"
   set screen keyboard on
   halt

 continue:
 endproc
-------------------------
Amadeu Pi schrieb in Nachricht ...
>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 :-)
>
>