Cisco TelePresence SX20 Codec Reference Manual page 114

Application programming interface (api)
Hide thumbs Also See for TelePresence SX20 Codec:
Table of Contents

Advertisement

Cisco TelePresence SX20 Codec
Contents
Introduction
xCommand Phonebook Search
The search command lets you search in both the local and corporate phone books. A search gives
a ResultSet.
The total number of folders and contacts (TotalRows) is always included in the result set when
searching the local phone book. When searching a corporate phonebook the total number of
folders and contacts may not be included. Whether it is included or not depends on the backend
corporate phonebook service (e.g. CUCM, VCS, TMS) and its version.
PhonebookId: The identifier of the phonebook server that will be used. See the xConfiguration
Phonebook Server ID setting. Not necessary to use.
PhonebookType: Define whether to search the local phone book or the corporate phonebook.
SearchString: Search for entries containing this string (note that the entry does not have to begin
with the string). If no FolderId is specified, all folders / phonebook directories will be searched.
SearchField: Currently not in use.
Offset: Get records starting with this offset in a search. The default value is 0. Offset is used
together with Limit to support paging.
FolderId: Search only in the specified folder. The FolderId (string) is listed in the ResultSet of a
search result containing folders.
Limit: Limit the number of records in the result set to this number. For example, if the limit is set to
10, the ResultSet will contain only 10 entries (Contacts and Folders) even if the total number of hits
is larger. The maximum limit is 1000.
Recursive: This parameter will only have effect when searching the local phone book. The setting
determines whether a local phone book search should be limited to the given FolderId, or also
recursively search in its subfolders. If not specified, the search will be recursive.
When issuing the command without specifying any parameters, all folders, contacts and contact
methods in the local phone book will be returned.
Tag: Limits the search to either contacts that have been tagged as favorite or the untagged
contacts.
Requires user role: USER
Parameters:
PhonebookId: <S: 0, 255>
PhonebookType: <Corporate/Local>
SearchString: <S: 0, 255>
SearchField: <Name/Number>
Offset: <0..65534>
FolderId: <S: 0, 255>
Limit: <0..65534>
Recursive: <False/True>
ContactType: <Any/Folder/Contact>
Tag: <Untagged/Favorite>
Example:
SX20 Codec API Reference Guide TC7.3, OCTOBER 2015.
D14949.13
About the API
xConfiguration
114
xCommand
xCommand
xCommand Phonebook Search PhonebookType:Corporate Limit:2
FolderId:"corporate _ 001"
OK
*r ResultSet ResultInfo TotalRows: 25
*r ResultSet Contact 1 Name: "John Doe (office)"
*r ResultSet Contact 1 ContactId: "localContactId-3"
*r ResultSet Contact 1 ContactMethod 1 ContactMethodId: "1"
*r ResultSet Contact 1 ContactMethod 1 Number: "H323:John.Doe.Office@
company.com"
*r ResultSet Contact 1 ContactMethod 1 Protocol: H323
*r ResultSet Contact 1 ContactMethod 2 ContactMethodId: "2"
*r ResultSet Contact 1 ContactMethod 2 Number: "SIP:John.Doe.Office@
company.com"
*r ResultSet Contact 1 ContactMethod 2 Protocol: SIP
*r ResultSet Contact 2 Name: "John Doe (home)"
*r ResultSet Contact 2 ContactId: "localContactId-4"
*r ResultSet Contact 2 ContactMethod 1 ContactMethodId: "3"
*r ResultSet Contact 2 ContactMethod 1 Number: "H323:John.Doe.Home@
company.com"
*r ResultSet Contact 2 ContactMethod 1 Protocol: H323
*r ResultSet Contact 2 ContactMethod 2 ContactMethodId: "4"
*r ResultSet Contact 2 ContactMethod 2 Number: "SIP:John.Doe.Home@company.
com"
*r ResultSet Contact 2 ContactMethod 2 Protocol: SIP
API Reference Guide
xStatus
Appendices
Copyright © 2015 Cisco Systems, Inc. All rights reserved.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents