05-06-2014 06:18 PM
Hi,
I noticed there is a 'Recursive' parameter one can set when searching the phonebook via the API. In the documentation it says that this parameter can only be used when searching the local phonebook.
Is there any reason this is the case and is there a trick to applying Recursiveness to a search of the corporate phonebook as well?
It would be a nice feature as I could populate a large array with one command rather than having to write a routine that has to crawl through each folder to pull out all the contacts contained.
Thanks,
Sam
05-07-2014 12:10 AM
Why not use the TMS phonebook API instead of the endpoint API?
If the endpoint can retrieve the corporate phonebooks and you can reach the endpoint there should not by any network limitations to directly query the TMS phonebook api.
If you do use the TMS phonebook api then it is possible to retrieve all the phonebooks recursively.
05-12-2014 07:04 PM
Thanks for your response Raymond.
That's a novel solution to me, I didn't know you could query the TMS phonebook.
Would there be an issue with tailored phonebooks for particular end points. For example an end point may only have a subset of the full phonebook, in which case if I query the TMS server would I be getting the full list instead?
I'm still curious as to why the recursive parameter does not work for the corporate directory. Is this a firmware bug or is it intended for any particular reason?
Regards,
Sam
05-13-2014 01:42 AM
The phonebook api is used by endpoints to retrieve their corporate phonebooks. You can use the same api to retrieve phonebooks.
You only need to identify yourself as an endpoint with its MAC address and you will only receive the phonebooks that are configured for that endpoint.
Just try this url to find some phonebook api documentation.
http://<tms ipaddress>/tms/public/external/phonebook/phonebookservice.asmx
I don't know why the recursive parameter does not work. I have always queried the TMS for phonebooks.
Also i am not a Cisco employee, I am just a developer
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