Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any OCX or WinAPI to record a phone conversation?
Message
From
29/05/2002 02:43:12
 
 
To
27/05/2002 09:39:53
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00660828
Message ID:
00662316
Views:
40
My apologies if I have confused you. =)

What I really wanted to do is to make an app wherein one can selected from a list of prospective people to call and have the option to record any phone conversation they go into.

The form basically would have a listbox of people's names and numbers, a commandbutton to DIAL, another commandbutton to RECORD, and another to EXIT this app. Of course, I have the MSCOMM control dropped into it too; let's say I named it DIALER.

I have this app but with no RECORD capability. My DIAL method is very basic goes something like this:
LOCAL llSuccess
llSuccess = .F.
IF EMPTY( ThisForm.txtPhone.Value )
   MESSAGEBOX( "Invalid Number!" )
   RETURN
ENDIF

WITH ThisForm.Dialer

    .PortOpen = .T.
    .Output = "ATDT" + ALLTRIM( ThisForm.txtPhone.Value ) +";" + CHR(13)

    DO WHILE .T.
       IF .InBufferCount > 0
          lcResult = lcResult + .Input
          IF "OK" $ lcResult
             llSuccess = .T.
             EXIT
          ENDIF
       ENDIF
    ENDDO

    IF llSuccess
       MESSAGEBOX( "Pick up phone." )
    ENDIF

    .Output = "ATH" + CHR(13)
    .PortOpen = .F.

ENDWITH
With the above, I was thinking of how the RECORD method would go. Should I omit the ATH line so the conversation can still be 'heard' in the modem and have its LINEOUT SPEAKER hooked up with the LINEIN of a sound card.

My modem is a D-Link 56k Data/Fax/Voice.

Thanks!
Dennis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform