2016-05-05 13 views

Antwort

1

Werfen Sie einen Blick auf JulMar die ATAPI-NET-Assembly für TAPI 2.x (http://atapi.codeplex.com/).

Es ist kostenlos und ich habe es für Cisco CUCM sowie eine Vielzahl anderer Telefonsysteme verwendet. Ich benutze kein VB.net (also beurteile bitte nicht mein sehr simples Codebeispiel). Meine Erfahrung ist in CTI nicht VB.

'The extension number of the Cisco Endpoint 
Dim deviceNumber As String = "PUTEXTSIONHERE" 

' The number you want to call 
Dim callNumber As String = "PUTNUMBERTOCALLHERE" 

Dim mgr As JulMar.Atapi.TapiManager = New JulMar.Atapi.TapiManager("Test App") 

' Now iterate through all the lines - 
' and make a call from any address that matches our device number 
mgr.Initialize() 

For Each line As JulMar.Atapi.TapiLine In mgr.Lines 
    For Each address As JulMar.Atapi.TapiAddress In line.Addresses 
     If address.Address = deviceNumber Then 
      line.Open(JulMar.Atapi.MediaModes.InteractiveVoice) 
      line.MakeCall(callNumber) 
      line.Close() 
     End If 
    Next 
Next 

mgr.Shutdown()