It i spossible with Fwh a comunication as CTI (computer telephony integration) and and PBX (phone system) ?
is there a test sample ?
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)
LOCAL TstTel := "0123456789()+"
LOCAL TstNr := 0
DEFAULT(cTelNr ,SPACE(20))
DEFAULT(cTelNm ,"Telephone test")
DEFAULT(cTelDos,"")
DEFAULT(cPreOK,.T.)
PRIVATE TelRet := .T.
DEFINE DIALOG KeuDlg NAME "K_TELEFOON" FONT oFontSFB
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(IF(US->USTELNUL,"0","") + ALLTRIM(cTelNr),"is called by",ALLTRIM(cTelNm),ALLTRIM(US->USERNAAM))
ENDIF
RETURN
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 102 guests