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!

WAITFOR "dialtone"

Status
Not open for further replies.
Dec 19, 2002
28
CA
Hi,I have here a very simple script :

proc main
commandmode on
pause 2
transmit "atdt *3324748,20750^M"
pause 15
hangup
pwexit
endproc

The script is use to activate "Call Forward" on the phone... when I do this manually with the phone, I dial and I wait for the dial tone return, and then I know that the feature is activate.

The script work fine... but I would like to replace "pause 15" by something like "waitfor dial tone".

There is a way to detect when the dial tone is back ?

Thank you to all of you guys !

Jean-Pierre
Work with MITEL system now (Meridian1 before)
 
There may be an AT command for your modem or its chipset manufacturer that would help with this. Other than that, I don't think there is another way to detect the dial tone since Procomm does not get as much information from TAPI as when it controlled the modem directly in previous versions.

 
Hello,

normal case for AT-Cmds return OK for good feedback and ERROR or NO CARRIER for erroneous case

if you are in this case you can use :
waitfor "OK" timer

GOHIER Frederic
 
Thank you guys for your time...

Finally, I found that I can put a # at the end of the number: transmit "atdt *3324748,20750#^M" and then the phone system don't wait, the feature is activate right now!

Jean-Pierre
Work with MITEL system now (Meridian1 before)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top