【发布时间】: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