Cisco Webex Device
We found some ambiguity with the xAPI Command "Phonebook Search"
Our attempt is to use paging in the Request for the Phonebook Search Results, but when we use the Parameters Limit and Offset other than default, we get erroneous results.
Our Test Phonebook (from webex control hub) has 75 Contact Entries.
The Connection to the Codec is via Websocket, however via RS232 Connection we get the same errors.
For simplicity a have omitted to include the full Array of contacts in the quoted JSON Returns below:
A request with default Params gives the correct answer:
{"jsonrpc":"2.0","id":"getGlobalDir","method":"xCommand/Phonebook/Search","params":{"PhonebookType":"Corporate","Offset":"0","Limit":"500","FolderId":"Directory","Recursive":"False","ContactType":"Any"}}
{"id":"getGlobalDir","jsonrpc":"2.0","result":{"Contact":[{"REMARK":"Resulting Array has 75 physical Contacts"}],"ResultInfo":{"Limit":500,"Offset":0,"TotalRows":75},"status":"OK"}}
The following requests with values set in the params "Limit" respectively "Offset" give ambiguous results:
{"jsonrpc":"2.0","id":"getGlobalDir","method":"xCommand/Phonebook/Search","params":{"PhonebookType":"Corporate","Offset":"0","Limit":"10","FolderId":"Directory","Recursive":"False","ContactType":"Any"}}
{"id":"getGlobalDir","jsonrpc":"2.0","result":{"Contact":[{"REMARK":"Resulting Array has 20 physical Contacts"}],"ResultInfo":{"Limit":10,"Offset":0,"TotalRows":20},"status":"OK"}}
{"jsonrpc":"2.0","id":"getGlobalDir","method":"xCommand/Phonebook/Search","params":{"PhonebookType":"Corporate","Offset":"0","Limit":"5","FolderId":"Directory","Recursive":"False","ContactType":"Any"}}
{"id":"getGlobalDir","jsonrpc":"2.0","result":{"Contact":[{"REMARK":"Resulting Array has 10 physical Contacts"}],"ResultInfo":{"Limit":5,"Offset":0,"TotalRows":10},"status":"OK"}}
{"jsonrpc":"2.0","id":"getGlobalDir","method":"xCommand/Phonebook/Search","params":{"PhonebookType":"Corporate","Offset":"5","Limit":"5","FolderId":"Directory","Recursive":"False","ContactType":"Any"}}
{"id":"getGlobalDir","jsonrpc":"2.0","result":{"Contact":[{"REMARK":"Resulting Array has 15 physical Contacts"}],"ResultInfo":{"Limit":5,"Offset":5,"TotalRows":20},"status":"OK"}}