07-09-2020 08:54 AM
I am using lineGetNewCalls() to get handles to the calls which is established before invoking my application.
https://docs.microsoft.com/en-us/windows/win32/api/tapi/nf-tapi-linegetnewcalls
The issue is that It always returns zero in the dwCallsNumEntries.
Although GetAddressStatus return the correct number of active calls on the same address that GetNewLineCalls uses
https://docs.microsoft.com/en-us/windows/win32/api/tapi/nf-tapi-linegetaddressstatus
GetNewLineCalls() is directly invoked just after I get the line handle from OpenLine()
CUCM version 12.5
Thank,
07-21-2020 10:33 PM
Using JTAPI when we add call observer on address/terminal we get events from JTAPI if there are any call on that address.
There must be similar mechanism in TAPI also to find the calls already there.
Regards,
Umesh
07-22-2020 03:15 PM
In general, after lineOpen() TAPI will provide events (e.g. LINE_APPNEWCALL) sufficient to update the app on the current state of any previously existing calls.
lineGetNewCalls() may only work for lines which have not yet been opened; also might try various options for dwSelect
This thread may be of interest: https://microsoft.public.win32.programmer.tapi.narkive.com/btSh9EqV/csta-snapshotdevice-is-it-possible-to-do-it-using-tapi
07-28-2020 04:33 AM
Hi,
I hope solution suggested by David worked for you. If yes, can you please marked as answer/helpful so that in future if anyone has similar kind of query they can get benefited from your input.
Thanks & Regards,
Umesh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide