I am trying to write a Winform / C# app which will grab the CLID of the incoming call and then allow me to do a lookup in my database (it's for a CRM system).
I have been using the JulMar Atapi library which works fine for outgoing calls, but seems to refuse to to even recognise an incoming call at all.
I have the following code when initiating to try and get the line to be monitored / listened to, but when an incoming call is made it never fires CallInfo or CallState changed events :
if (_atapiMgr.Initialize())
{
foreach (TapiLine line in _atapiMgr.Lines)
{
line.NewCall += this.OnNewCall;
line.CallInfoChanged += this.OnCallInfoChange;
line.CallStateChanged += this.OnCallStateChange;
line.Changed += this.OnLineStateChanged;
line.Ringing += this.OnRinging;
line.Monitor();
}
}
We use Avaya Phonemanager which does display the CLID when in use. Are there any alternative TAPI .Net wrappers, or do I need to look at working with TAPI directly to get this to work?