Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redial last number called 1

Status
Not open for further replies.

Drake85

Technical User
Nov 18, 2010
4
US
Hey All

I feel like I'm running into a stupid wall on this one.

I'm trying to get my script to redial the last number that Procomm dialed. It's used in a login script that is called after a call is established from the DATA connection directory.

Thoughts on this please? Thanks
 
If you are using a modem, usually "at dl" for "dial last" will work.

If you dialed from the dialing directory, try the $DIALCONNECT variable. This is the last entry dialed from the dialing directory.
 
If you are connected, you can use the $DIALCONNECT system variable to get the name of the Connection Directory entry name that you are connected to, then fetch the phone number from the Connection Directory entry. Here's a quick script that I think should do the trick, but am not setup to test it at the moment:

proc main
string sAreaCode
string sPhoneNumber

if set dialentry access DATA $DIALCONNECT
fetch dialentry areacode sAreaCode
fetch dialentry phonenumber sPhoneNumber
endif
endproc

 
knob - Thanks! I actually figured out a different way to do it which is a little different way, but it works for what I'm doing with it.

All I did was use $DIALCONNECT and store it as global variable Redial. Then just run the command "dial DATA Redial" which calls the same number it just tried to call, plus re-fires the logon script.

So, in a round-about way of doing it, you solved my problem. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top