05-18-2015 02:52 PM
After creating the provider and waiting for it to be up and running, I tried calling provider.getTerminals(). But this method returns null.
When I looked at the properties of the provider, I found "canobserveanyterminal" property having 'null' value (that is it is neither true nor false, just null).
Can you please advise what user permission is required to obtain a list of terminals?
Thanks
Solved! Go to Solution.
05-18-2015 04:33 PM
Devices added to the "Controlled Devices" section of enduser or application user configuration on CUCM admin will be reported in provider.getTerminals(). How many devices did you configure?
I would recommend using JTAPI test tool to eliminate any configuration/ application issues.
05-18-2015 04:33 PM
Devices added to the "Controlled Devices" section of enduser or application user configuration on CUCM admin will be reported in provider.getTerminals(). How many devices did you configure?
I would recommend using JTAPI test tool to eliminate any configuration/ application issues.
05-19-2015 06:52 AM
Thanks Mohan. My Administrator created another user for JTAPI and I added devices to it which returned successfully via getTerminals.
The other user I was using earlier never showed the "Device Information" section for some reason. I assumed it was able to access all devices as the Roles and Groups clearly showed "control all devices".
Anyways, thanks for your help.
01-26-2016 12:07 PM
Hello guys,
I added terminals to "Device Information". After calling provider.getTerminals() I get list of configured devices but sometimes I get null and then again I can get terminals and then I can get only one terminal. Of what does it depend on?
For example:
- I write simple program where I connect to CUCM by ip and user.
- I call provider.getTerminals()
- Print list of terminals(sometimes it is null)
- Call provider.shootdown()
Starting this application from console gives me different results.
Please, help. I can't find information in the documentation and internet why list of terminals disappears.
01-27-2016 09:31 AM
Are you waiting for provider to get into in-service state before calling provider.getTerminals()?
Refer to makecall or jtrace sample app code on how to wait for provider to get to in-service state.
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