TenantFindContacts Method

Provides array of PhoneBookEntry matching specified caller id in company phonebook
Use FindContacts(String, UInt32) to search in personal phone book. best match priority is:
1. all with exact match
otherwise
2. ended with specified number
otherwise
3. longest possible match of the tail which is not less then min_len
otherwise - empty array

Definition

Namespace: TCX.Configuration
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
PhoneBookEntry[] FindContacts(
	string number,
	uint min_len = 4294967295
)

Parameters

number  String
the number to lookup
min_len  UInt32  (Optional)
minimum length of matching.

Return Value

PhoneBookEntry
Array contains entries which are providing longest possible match, but not less then specified

Remarks

min_len can be specified as:
>length of number - only exact match (default)
==length of number or 0 - exact match or ends with the number
<length of number - exact match or ends with or longest matching tail >= min_len

See Also