Page 1 of 1

TAPI Driver

Posted: Mon Jul 01, 2013 4:14 pm
by JimTheo
Is there any library or Activex to use with FW++ for TAPI Drivers?
My Project is to connect to a center and :
a. Make phone calls from my application
b. Receive Incoming Calls (caller id) using TAPI of center.

Re: TAPI Driver

Posted: Mon Jul 01, 2013 8:09 pm
by driessen
I don't know in FW++ but this is the function to make a phonecall I use in FWH

Code: Select all

DLL32 Function PhoneTo(cPhoneNo As LPSTR,cAppName AS LPSTR,cName AS LPSTR,cComment AS LPSTR) AS LONG PASCAL FROM "tapiRequestMakeCall" LIB "tapi32.dll"

PROCEDURE MakePhoneCall(cTelNr,cTelNm,cTelSrt,cTelDos,cPreOK,cTest)

   LOCAL TstTel   := "0123456789()+"
   LOCAL TstNr    := 0

   DEFAULT(cTelNr ,SPACE(20))
   DEFAULT(cTelNm ,"Test telephone")
   DEFAULT(cTelDos,"")
   DEFAULT(cPreOK,.T.)
   DEFAULT(cTest ,.F.)

   PRIVATE TelRet := .T.

   DEFINE DIALOG KeuDlg NAME "K_TELEPHONE"
   REDEFINE GET cTelNr ID 101 OF KeuDlg PICTURE REPLICATE("!",20)

   REDEFINE BUTTON ID 901 OF KeuDlg ACTION (TelRet:=.T.,KeuDlg:END())
   REDEFINE BUTTON ID 902 OF KeuDlg ACTION (TelRet:=.F.,KeuDlg:END())

   ACTIVATE Dialog KeuDlg CENTERED

   IF TelRet .AND. !EMPTY(cTelNr)
      cTelNr := ALLTRIM(cTelNr)

      FOR i=1 TO LEN(cTelNr)
          TstNr := AT(SUBSTR(cTelNr,i,1),TstTel)
          IF TstNr = 0
              cTelNr := LEFT(cTelNr,i-1) + RIGHT(cTelNr,LEN(cTelNr)-i)
              i--
          ENDIF
      NEXT

      IF LEFT(cTelNr,1) = "+" ; cTelNr := "00" + RIGHT(cTelNr,LEN(cTelNr)-1) ; ENDIF
   ENDIF

   IF TelRet
      PhoneTo(ALLTRIM(cTelNr),"is called by ",ALLTRIm(cTelNm),"Username")
   ENDIF

RETURN
Good luck.

Re: TAPI Driver

Posted: Tue Jul 02, 2013 6:19 am
by JimTheo
Thanks for help Michel. I'll try this.
Is there any documentation you know, about caller id?

Re: TAPI Driver

Posted: Tue Jul 02, 2013 8:56 am
by driessen
I have no idea. Sorry.

Re: TAPI Driver

Posted: Tue Oct 21, 2014 8:24 am
by Horizon
Hi Michel,

Is there any driver to run this function in computer?

Thanks.

Re: TAPI Driver

Posted: Tue Oct 21, 2014 10:04 am
by Baxajaun

Re: TAPI Driver

Posted: Wed Oct 22, 2014 7:16 am
by JimTheo
Baxajaun Thanks for links.

Is there any sample I could use with FW?

Re: TAPI Driver

Posted: Fri Oct 24, 2014 3:33 am
by metro
Hi JimTheo,

Do you really have to use the TAPI driver?
I think it's a much better solution for call center SIP (Session Initiation Protocol) based dial and receive phone calls feature.

View http://www.vaxvoip.com/phonesdk.html

Dubravko