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

Got blank value when using getRegistrationDynamic()

jialinli
Level 1
Level 1

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

3 Replies 3

dstaudt
Cisco Employee
Cisco Employee

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?

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

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