Click to See Complete Forum and Search --> : How to make vb detect phone ring and answer .?.
razzaj
Jan 16th, 2000, 05:16 AM
and how to detect that the call has been answered ?
------------------
- regards -
- razzaj -
Im not sure if its even possible. There is probably some API call to do it but id imagine youd have to listen on the line for a ring tone unless whne the phone rings it sends some kind of signal to the computer...then all yoiud have to do is trap it and pick up using the AT commands. Try contacting you modem manufacturer.
Good Luck!
Glenn Harwood
Maartin
Jan 16th, 2000, 02:46 PM
If you are prepaired to use 3rd party controls. Go and have a look at Crescent.
They have two sets there. One set contains controls, dll etc that will allow you to do just what you are looking for and will ease the sending of files etc.
The other one is for internet development which includes tcp coms etc.
I will see if i can get you an answer just using VB and nothing else.
------------------
-----------------------
Maartin
dinamite@onwe.co.za
-----------------------
wongqc
Jan 16th, 2000, 03:34 PM
You can take a look at saxcomm, though the pricing is a bit high.
MadMarc
Mar 25th, 2000, 11:28 PM
Hi,
To detect that the phone is ringing, I used the following code:
If MSComm1.InBufferCount Then
fromModem = fromModem + MSComm1.Input
txtresponse.Text = fromModem
' Check for "RING".
If InStr(fromModem, "RING") Then
' Notify the user to pick up the phone.
Beep
MsgBox "Phone Ringing" & Chr(13) & "Press ok to pick up", vbOKOnly, "Modem Dialler"
' add code to do whatever you want it to do here
End If
End If
Hope it helps a bit!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.