VTS may be used to automatically dial RAS connections based upon some condition generated within your application. RAS spawning may be useful for situations where:
• The client needs to contact a server periodically using a phone line, or
• The server needs to inform a specific client of a problem or event.
In order to facilitate this behavior, you must ensure the steps below are taken:
1. Enable RAS for incoming calls on the PC to be called (consult your Windows operating system help files for instructions on enabling RAS).
2. Create a RAS phonebook entry for the PC to be called (consult your Windows operating system help files for instructions on creating a RAS phonebook entry).
3. Use the Spawn() function in VTS to make the call as follows:
Spawn("Rasphone –d Entry")
Where "Entry" is the name of the RAS entry.
To hang up the connection, use:
Spawn("Rasphone –h Entry")
Note: "Entry" is case insensitive for placing calls (-d) and is case sensitive for hanging up (-h).