How to determine if phone is in a call?

  • Thread starter Thread starter farseer
  • Start date Start date
F

farseer

Hello,
i'd like to know if there is quick (even if dirty) way of knowing if my
device is currently in a call? I realize the OpenNet guys have a TAPI
library, but it just seems like a huge overkill for me to include that
in my project if i simply want to determine if the phone is in a call.

thanks
 
I'm afraid that would be the only accurate way to tell.
You will need to open the line with MONITOR privileges and call
lineGetNewCalls
 
ok, i suppose that is what i needed to know. i need to take some time
to understand your work. Your Tapi package is quite involved, and i am
not sure where to start.. would you be able to briefly summarize the
flow of how i would do this? not asking for you to write my code (heh,
you already did with that the tapi package i suppose :)), but what i
mean is if you could outline the steps i need to take in my particular
use case: the need to determine if a line is currently active.
 
Back
Top