08-28-2016 07:22 PM
XFkType deviceName = factory.createXFkType();
deviceName.setValue(phoneName);
GetRegistrationDynamicReq registerStatus = new GetRegistrationDynamicReq();
registerStatus.setDevice(deviceName);
GetRegistrationDynamicRes registerStatusResponse = axlPort.getRegistrationDynamic(registerStatus);
Demo2.informUser("Registration Status : " + registerStatusResponse.getReturn().getRegistrationDynamic().getLastKnownIpAddress()
+ "%n" + registerStatusResponse.getReturn().getRegistrationDynamic().getLastKnownUcm()
+ "%n" + registerStatusResponse.getReturn().getRegistrationDynamic().getLastKnownConfigVersion()
+ "%n" + registerStatusResponse.getReturn().getRegistrationDynamic().getLocationDetails()
+ "%n" + registerStatusResponse.getReturn().getRegistrationDynamic().getEndpointConnection()
+ "%n" + registerStatusResponse.getReturn().getRegistrationDynamic().getLastSeen()
+ "%n" + registerStatusResponse.getReturn().getRegistrationDynamic().getUuid());
Hi,
When I ran the above script, I could only get Uuid & getLastSeen value while other values are all blank, does anyone know the reason? I'm sure the device is registered to CUCM 11.5 and the getLastSeen returns "0". Am I using the wrong method to get phone registration status?
Thanks,
Jialing
08-29-2016 10:54 AM
Don't think I'm familiar with 'getRegistrationDynamic'...can you provide some more background about where you're starting from? Which API are you using?
08-30-2016 02:36 AM
Hi, David
I start from the demo at https://developer.cisco.com/site/axl/learn/how-to/axl-java-sample-application.gsp.
In another discussion, I saw the links you provide, and now I can get IP address and registration status successfully by these guides now.
https://developer.cisco.com/site/sxml/downloads/sample-app/.
But still, I want to get active load ID of a device. https://developer.cisco.com/site/sxml/documents/api-reference/risport/, at this webpage, I saw under the "SelectCMDevice Response Format" it said that a CmDevice in the CmNode contains ActiveLoadID which displays the currently active firmware on the phone, but there is no activeLoadID related functions under "CmDevice.java", I just added an activeLoadID function by myself in "CmDevice.java" according to another function's format (like getdescription), but I just got "null" value when I tried to get activeloadID...... Do you know anything about this? Thank you so much~
Thanks,
Jialing
09-02-2016 02:23 PM
Can you confirm you compiled your class based on the WSDL for Risport70 (which contains the Active Load info in the schema) vis the legacy Risport WSDL (which does not?)
https://<server>:8443/realtimeservice2/services/RISService70?wsdl
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