[英]TAPI no incoming “signals”? How to check the TAPI Driver?
I try to learn and understand TAPI and I have tried A LOT of examples, all of them get my TAPI Line and I can dial out, but no event is fired when I have an incoming call, so I'm starting to think that the TAPI driver is not working properly/blocked by firewall/something completely different.我尝试学习和理解 TAPI 并且我尝试了很多示例,所有示例都可以使用我的 TAPI 线路并且我可以拨出,但是当我有来电时不会触发任何事件,所以我开始认为TAPI 驱动程序工作不正常/被防火墙阻止/完全不同的东西。
Last code I tried is http://pastebin.com/T3ZHkLi0 and I'm getting to MsgBox("We are here")
end then it exits.我试过的最后一个代码是http://pastebin.com/T3ZHkLi0并且我到达
MsgBox("We are here")
结束然后它退出。 Before that it fires the only TAPI line I have.在此之前,它会触发我唯一的 TAPI 线。
Is there any way to check why no incoming events are fired?有什么方法可以检查为什么没有触发传入事件?
Specs规格
Any hint is highly appreciated任何提示都非常感谢
I suggest you to not use TAPI COM solution and use Julmar .Net 32-bit and 64-bit compatible solution http://atapi.codeplex.com/ .我建议您不要使用 TAPI COM 解决方案并使用 Julmar .Net 32 位和 64 位兼容解决方案http://atapi.codeplex.com/ 。 It's wrapper for TAPI.dll and easy to implement.
它是 TAPI.dll 的包装器,易于实现。 You can simply convert this c# code into VB
您可以简单地将此 c# 代码转换为 VB
TapiManager tapiManager = new TapiManager("TapiCallMonitor.net");
if (tapiManager.Initialize() == false)
{
MessageBox.Show("No Tapi devices found.");
this.Close();
return;
}
foreach (TapiLine line in tapiManager.Lines)
{
try
{
line.NewCall += OnNewCall;
line.CallStateChanged += OnCallStateChanged;
line.CallInfoChanged += OnCallInfoChanged;
line.Monitor();
}
catch (TapiException ex)
{
LogError(ex.Message);
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.