Results 1 to 5 of 5

Thread: How to make vb detect phone ring and answer .?.

  1. #1

    Thread Starter
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261

    Post

    and how to detect that the call has been answered ?

    ------------------
    - regards -
    - razzaj -

  2. #2
    Guest

    Post

    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

  3. #3
    Lively Member Maartin's Avatar
    Join Date
    Jan 2000
    Location
    Benoni, Gauteng, South-Africa
    Posts
    99

    Post

    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
    -----------------------

  4. #4
    New Member
    Join Date
    Jan 2000
    Location
    Singapore
    Posts
    10

    Post

    You can take a look at saxcomm, though the pricing is a bit high.

  5. #5
    New Member
    Join Date
    Nov 1999
    Posts
    5
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width