WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

RAS

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

RASEO_TerminalAfterDial Problems

 Keywords:  RASEO_TerminalAfterDial Problems

Question:

When I use rasdial via the ras extender, it doesn't open the terminal after dial window.

More Details:
I have written a "client.scp" for dialup networking to use, that handles the afterdial window. I have written a wbt that will give a list of all availiable "entries" in the phone book, copy the entry with all it's attributes to a new entry, & then remove the "Use terminal afterdial" option while adding "Use client.scp" to handle the login.

The weird thing is that if I manually kick off that new cloned entry, the terminal window pops up, even though it's in the entry not to use terminal-after-dial, & the client.scp handles it & connects.

If I use Rasdial for the new cloned entry, I never see the terminal screen & what's weirder it that it does connect, but it doesn't display the connection in the systray.

wacky...

Any ideas?

Reply:

Maybe post the code that generates the entry and removes the RASEO_TerminalAfterDial...

We'll see if we can recreate the problem...

Make sure you are using the very latest version of the Ras Extender. http://www.windowware.com/download.html

Question (continued):

Well the good news is that I've gotten it to work. The bad news is I can't see any modem lights to tell me if I've connected or not (allthough ras will tell me when I'm connected).

Not to nitpick but if I run rasentryinfo on the original entry I see the options=33432. Now in this entry terminalafterdial is turned on.

So in my code, after we clone the original entry to the "New Connection" I also add:

RasEntrySet("options","33304")
RasEntrySet("script","%scpdir%client.scp")
Under Rasentryset, the option element is a cumulative integer, so: 128=RASEO_TerminalAfterDial
My thinking was 33432-128=33304 to turn off RASEO_TerminalAfterDial.

Now what I'm wondering is that in the next line when I RasEntrySet("script","%scpdir%client.scp"), does this automatically disable RASEO_TerminalAfterDial?? And if so, when I subtract 128 from the options, what is that turning off instead?

BTW, if anyone could give me a list of options that are all turned on by deciphering options=33432, I would be most appreciative.

Reply (continued):

Ahh yes, the dreaded problems when working with RAS options...

Specifying a script does disable RASEO_TerminalAfterDial. The RASEO_TerminalAfterDial flag option *special* in this regard. Do not set this flag if a dial-up networking script is to be associated with the connection, because scripting has its own terminal implementation. Also, The RASEO_TerminalAfterDial flag works only if this phone-book entry is dialed manually.

This flag has no effect if the entry is dialed by the RasDial function.

We will update the help file to reference this.....

As for decifering the options, see the following sample UDF that returns a list of options: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WIL~Extenders/Ras~Extender+UDF~-~List~Ras~Options.txt


Article ID:   W15087
File Created: 2017:07:28:13:58:40
Last Updated: 2014:07:18:09:49:35