12-29-2021 11:48 PM
Hello,
I'm trying to get the Device status information through AXL call or JTAPI call without setting the observation. I have tried getstate() however, the call is returning 0 even when the device is offline or online
01-02-2022 09:47 PM
Hi
Did you get a chance to look for serviceability API (RiSPort) for getting real time device state. Here is the link: https://developer.cisco.com/site/sxml/learn/getting-started/risport/
Even it should work well with jtapi getState() too..
May i know which device type you were trying to get the real time status ? Like any Phone model or trunks etc..
Thanks,
Kiran
01-06-2022 08:56 AM
If you are looking to get the in-call/idle type status, then TAPI/JTAPI will be the way to go (Risport provides only registration status.)
This sample app shows how to use CiscoTerminal.getDeviceState(): https://github.com/CiscoDevNet/jtapi-samples/blob/master/src/main/java/com/cisco/jtapi/superProvider_deviceStateServer/superProvider_deviceStateServer.java
Note, this functionality requires that JTAPI open/observe the device (even if temporarily) in order to retrieve the current status and receive real-time status updates.
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