General information
Category:
Windows API functions
Hi Tracy,
I'm trying to think how to do that. I used to work with modems a lot long ago and I would just fopen() the com port and fputs() the 'ATZ', etc., can you do that these days? I'm thinking I might have to make an API call or use RAS or something.
On another note, the recent weather up here, -10 to -15, while not unusual for this time of year, has me thinking fondly of NC winters!
Gary
>I think if you send 'ATDT'+CHR(13)to the modem you can check the response buffer for the string "NO DIALTONE" Usually you send an attention and init command to the modem first though. Typically it is: "ATQ0V1E1S0=0" + Chr(13) or "ATZ" + CHR(13) (reponds 'OK')
>
>
>>I'm looking for a way to determine if a dial tone can be gotten from a modem. I have a modem hooked to a Windows server and sometimes the line goes down or the modem is unavailable for a variety of reasons and I'd like to programmatically know this, presumably by taking the modem off hook and detecting a dial tone or some other indication that the modem is turned on and able to get a dial tone.
>>
>>Anyone ever done this? Thanks in advance.
>>
>>Gary
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only