TAPI for VB 6

Posted on 2006-05-24
Last Modified: 2009-12-16
Does anybody have a simple sample that will do the following:

Identify the TAPI devices that I have,
Be able to select a specific device
and make a call through that device.

I have the UI built and I have a simple make call but I want to be able to do the top two items of my request. Here is the sample code:

Declare Function tapiRequestMakeCall Lib "tapi32.dll" _
         (ByVal stNumber As String, ByVal stDummy1 As String, _
         ByVal stDummy2 As String, ByVal stDummy3 As String) As Long

'Following function receives a phone number to dial.

Function DialNumber (PhoneNumber)

Dim Msg As String
Dim RetVal As Long

' Send the telephone number to the modem.
RetVal = tapiRequestMakeCall(PhoneNumber, "", "", "")
If RetVal < 0 Then
Msg = "Unable to dial number " & PhoneNumber
End If

End Function
Question by:cjinsocal581
    LVL 3

    Assisted Solution

    LVL 14

    Accepted Solution

    Here is a nice source code using Tapi3
    it requires no thirt party control

    source code will guide you to alter and meet ur requirement

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now