cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1490
Views
0
Helpful
3
Replies

Getting existing calls on CUCM

h.abdelraouf
Level 1
Level 1

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,

3 Replies 3

upchaurasia
Spotlight
Spotlight

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

 

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

upchaurasia
Spotlight
Spotlight

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