CAPI Programming

CAPI stands for "Common ISDN Application Interface" and is used for programming ISDN cards and adapters. I'll try to explain the basics behind, so that you are able to make use of it.

IntroductionMaking a call
Source code call display (VB 5)Source code making a call (VB 5)

In the example project capi.zip an error was discovered (01.07.2008):
In "Get_Capi_Message()" the PLCI is set wrongly in the DisconnectResp structure. Instead of ConnectInd the variable DisconnectInd has to be used:
            With DisconnectResp
                .length = Len(DisconnectResp)
                .Appid = Appid
                .Command = CAPI_DISCONNECT
                .SubCommand = CAPI_RESP
                .Message_Number = &H0
                .PLCI = ConnectInd.PLCI    # must be DisconnectInd.PLCI!
            End With

Related sites (partly German):

http://www.keiffenheim.com/iccm/: Reiner Keiffenheim's Capi Call Monitor (Shareware) implements more functions and comfort than mine. He also has developed a CAPI OCX.

http://www.capi.org/document.htm: Official CAPI documentation.

http://ourworld.compuserve.com/homepages/stefangraf/: ISDN and CAPI for Delphi and C++Builder.

http://home.t-online.de/home/Peter.Zwosta/index.htm: Information in German about CAPI-Programmierung with Delphi. Description of the message structures and calls.

http://welcome.to/capisite/: Wagners CAPI & Teles Homepage with CAPI declarations for VB and an experimental OCX.