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.
Last code I tried is http://pastebin.com/T3ZHkLi0 and I'm getting to MsgBox("We are here")
end then it exits. Before that it fires the only TAPI line I have.
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/ . It's wrapper for TAPI.dll and easy to implement. You can simply convert this c# code into 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);
}
}
You can find full solution here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.