On Sunday October 29, 2000, Howard Schwartz wrote:
> What is a nice way to do retry with voice calls in a batch file?
> With some many always busy business lines this would be handy. Something
> like this:
>
> :retry
> echo atz > com2
> echo atdt123456 > com2
> wait 4
> echo atH > com2
> goto retry
Usually you can kill an attempt to connect by hitting any
key. This is useful becuase that keystroke doesn't count as
a modem command, so you can redial the number with the "a/"
command (without any "at" prefix", which tells the modem to
repeat the last command - in this case, atdt123456.
> Only thing the above needs is a way to check in the batch file if
> the call is busy. Some com utility that returns error codes for
> modem messages?
You can initialize the modem to report numerically rather
than "verbosely". I don't trust myself with this off the top
of my head, but I think it might be atv0. In any case, it's
a standard Hayes-compatible command and shouldn't be
difficult to turn up.
R.
To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html