Should make it more clearer.
I get the list of Terminals for the DN from Provider.getAddress(DN).getTerminals().
I expected the SEP address in the list of Terminals returned.
I don't see that SEP address if don't add it in the "Controlled Device" list manually.
I am sure this has been addressed before, but for some reason I am running into some problems.
I have created an Application User with ALL the necessary privelages :
Standard CTI Enabled
Standard CTI Allow Control All Devices
...and many others.
But when I try to take control of one of the device which is NOT in the "Controlled Device" list, I get this exception:
com.cisco.jtapi.InvalidArgumentExceptionImpl: Address XXXXXX is not in provider's domain.
When I manually add that Device to the "Controlled Device" list, it works. In this case I am using the Provider object to get the Address and Terminal objects for this DN
On the other hand, if I create the Terminal using the following, I don't need to add the device manually in the list and I don't get that error.
providerCapabilities.getClass().getMethod("canObserverAnyTerminall")
I thought obtaining the Terminal object from the Provider would be the same (attribute and functionality wise) as creating one myself. I don't want to create the Terminal object within the code and just obtain it from Provider.
What am I missing here ?
Thanks!
Arvind