【问题标题】:ATAPI interactive MediaModes and c#ATAPI 交互式 MediaModes 和 c#
【发布时间】:2015-12-05 10:45:58
【问题描述】:

我一直在尝试使用 ATAPI 和 c# 建立调用。 虽然当我使用调制解调器打开线路时 Conexant USB CX93010 ACF 并检查支持的 MediaMode 我得到了这个: enter image description here

但是当我尝试使用交互式媒体模式打开一行时,我收到一个异常 enter image description here

这是消息: {"lineOpen 失败 [0xFFFFFFFF8000002F] 媒体模式无效\r\n"} 和代码:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JulMar.Atapi;
namespace SimpleCall
{
    class Program
{
    static void Main(string[] args)
    {
        TapiManager z = new TapiManager("SimpleCall");
        z.Initialize();
        TapiLine[] phone = z.Lines;

        TapiLine line = phone[16];
        Console.WriteLine(line);
        line.Open(MediaModes.InteractiveVoice);
        Console.WriteLine(line.Capabilities.MediaModes);
    }
}

}

【问题讨论】:

  • 你的问题是什么。此行不支持此媒体模式。如你看到的。使用 tapi 浏览器或 TB20 或其他工具检查支持的媒体。

标签: c# .net phone-call tapi


【解决方案1】:

在调制解调器媒体模式下打开线路应该可以工作

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JulMar.Atapi;
namespace SimpleCall
{
    class Program
{
    static void Main(string[] args)

{
    TapiManager z = new TapiManager("SimpleCall");
    z.Initialize();
    TapiLine[] phone = z.Lines;

    TapiLine line = phone[16];
    Console.WriteLine(line);
    line.Open(MediaModes.Modem);
    Console.WriteLine(line.Capabilities.MediaModes);
}
}
}

【讨论】:

    猜你喜欢
    • 2013-04-16
    • 2014-11-15
    • 1970-01-01
    • 2012-10-18
    • 2015-06-29
    • 2017-11-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多