我需要开发一个应用程序来通过 VB 应用程序呼叫 Cisco CUCM 分机号码。我已经为计算机安装了 Tapi 驱动程序,现在我需要知道从哪里开始。非常感谢您的建议
谢谢你
我需要开发一个应用程序来通过 VB 应用程序呼叫 Cisco CUCM 分机号码。我已经为计算机安装了 Tapi 驱动程序,现在我需要知道从哪里开始。非常感谢您的建议
谢谢你
看看 JulMar 的 TAPI 2.x 的 ATAPI .net 程序集。( http://atapi.codeplex.com/ )。
它是免费的,我已经将它用于 Cisco CUCM 以及许多其他电话系统。我不使用 VB.net,(所以请不要判断我非常简单的代码示例)。我的经验是在 CTI 而不是 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()