Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12120

Re: TAPI working example in VO needed

Newsgroups comp.lang.clipper.visual-objects
Date 2018-11-16 08:28 -0800
References <448f67e5-e252-47f5-b682-c2860c934e83@googlegroups.com>
Message-ID <45642f6d-e4d7-4430-b1c4-e3b6644f53bf@googlegroups.com> (permalink)
Subject Re: TAPI working example in VO needed
From Jean-Luc Stassen <jls@igsoft.be>

Show all headers | View raw


Hi Stefan

We use TAPIEx ocx to do that.

You initialise the control, the line, the device than make a call

IF !self:oDCTapiControl:CreateEmbedding("TAPIEx.TAPIEx_b.1","")  
..
ENDIF

self:oTapiEx:AboutSerialNumber := "mylicencenumber"
self:oTapiEx:initialize()  
	
IF oEnvObject:oTapiLine<>null_object    //au cas ou on change de ligne 
                                        téléphonique dans les var utilisateurs
  IF oEnvObject:oTapiLine:Opened 
    oEnvObject:oTapiLine:close()    
  ENDIF
ENDIF                      
	
nDeviceId := Val(AsString(READINI("DEVICELINE")))   
IF self:oTapiEx:Lines:Count>0  
  oEnvObject:oTapiLine := self:oTapiEx:Lines:Item(nDeviceId) 
  IF oEnvObject:oTapiLine<>null_object 
	IF oEnvObject:oTapiLine:Open() == FALSE
  	  InfoBox{self, trad(self,"Info"), trad(self,"Imposible d'ouvrir la 
           ligne téléphonique")}:show()
	ENDIF 
  ENDIF  
ENDIF

self:currentCall := oEnvObject:oTapiLine:MakeCall(cgsm) 


Jean-Luc

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

TAPI working example in VO needed Stefan Ungemach <stefan.ungemach@bingo-ev.de> - 2018-10-29 01:40 -0700
  Re: TAPI working example in VO needed Gerhard Bunzel <g.bunzel@domonet.de> - 2018-10-30 01:39 +0100
  Re: TAPI working example in VO needed Stefan Ungemach <stefan.ungemach@bingo-ev.de> - 2018-11-16 02:50 -0800
  Re: TAPI working example in VO needed Jean-Luc Stassen <jls@igsoft.be> - 2018-11-16 08:28 -0800

csiph-web