cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1055
Views
0
Helpful
2
Replies

Getting Device Status through AXL or JTAPI call without setting obser

harishmamidala
Community Member

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

2 Replies 2

KiranKL
Cisco Employee
Cisco Employee

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

dstaudt
Cisco Employee
Cisco Employee

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.