【问题标题】:How generate a call to a Cisco IP phone from VB.net application如何从 VB.net 应用程序生成对 Cisco IP 电话的呼叫
【发布时间】:2016-05-05 10:43:26
【问题描述】:

我需要开发一个应用程序,以便通过 VB 应用程序呼叫 Cisco CUCM 分机号码。我已经为计算机安装了 Tapi 驱动程序,现在我需要知道从哪里开始。非常感谢您的建议

谢谢

【问题讨论】:

    标签: cisco tapi cisco-jtapi


    【解决方案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()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-15
      • 2016-03-27
      • 1970-01-01
      相关资源
      最近更新 更多