我需要开发一个应用程序来通过VB应用程序调用Cisco CUCM分机号码。我已经为计算机安装了Tapi驱动程序,现在我需要知道从哪里开始。非常感谢您的建议
谢谢
答案 0 :(得分:1)
查看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()