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!

Read DataNumber from Connection Directory

Status
Not open for further replies.

jocas9

Technical User
Sep 21, 2004
9
PT
Hello all, I'm trying to read to a variable the DataNumber from the connection directory.
I wrote this script:

;Recorded script. Editing may be required.
proc main
String numero

commandmode on
transmit "at^M"
waitfor "K^M^J"
transmit "ath\n1s37=5^M"
waitfor "K^M^J"
transmit "at^M"
numero = $DIALENTRY
transmit numero
transmit "^M"

endproc

When I transmit the procomm sends the name of the customer, whow can I retrieve the data number of this entry ????

Best Regards,

Jose Carlos
 
I miss one point, I tried to use dial Data number and he dial the entry but the configuration I made, before, on the modem is disregarded (transmit "ath\n1s37=5^M").

I hope this is clear.

Best Regards,

Jose Carlos
 
As you can see on my script I start with comandmode on.Any more tips ????

Best Regards,

Jose Carlos
 
After a while, serching on the books and sample scripts I put this working.

This is the final script:

String client
String phonenumber

commandmode on
transmit "at^M"
waitfor "K^M^J"
transmit "at+ms=v34^M"
waitfor "K^M^J"
transmit "at^M"
client = $DIALENTRY
set dialentry access DATA client
fetch dialentry phonenumber phonenumber
transmit "ATDT0"
transmit phonenumber
transmit "^M"

endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top