Skip to main content

LDAP Contact Resolution

Overview​

Use the LDAP Contact Resolution app to look up a caller in Active Directory or another LDAP directory. On a matching policy rule, CallTelemetry checks its contact cache and local contact records first. If there is no usable local result, it queries the configured directory. New successful LDAP lookups are saved for reuse until their configured expiry.

For directory imports into local Contacts, use LDAP Contact Sync. Sync is separately enabled and supports manual or scheduled runs with durable history. Its source-owned contacts are distinct from the expiring results of call-time LDAP lookup.

Requirements​

Configuration​

LDAP contact resolution is configured as a policy app, the same way as PostgreSQL and webhook integrations.

Step 1: Create the LDAP Contact Resolution App​

  1. Navigate to Realtime Policies → Apps
  2. Click Add → Select LDAP Contact Resolution under the Realtime tab
Screenshot of the Create New Application dialog with LDAP Contact Resolution highlighted
  1. Configure your LDAP connection:
    • Host -- LDAP server hostname or IP address
    • Port -- Default 389 (LDAP) or 636 (LDAPS)
    • Enable SSL/TLS -- Check this for secure connections (port 636)
    • Base DN -- The search base for lookups (e.g., DC=company,DC=com)
    • Bind DN -- Service account DN (e.g., CN=svc-calltelemetry,OU=Service Accounts,DC=company,DC=com)
    • Bind Password -- Service account password
    • Contact cache TTL (minutes) -- Time to live for saved LDAP lookup results. The default is 30 minutes. Choose 5, 15, or 30 minutes, 1 hour, 4 hours, or 12 hours, or enter a custom value from 1–1,439 minutes.
  2. Configure the search filter and attribute mapping (see below)
  3. Click Save
Screenshot of the LDAP Contact Resolution app configuration with connection settings and Active Directory example templates

Step 2: Associate with a Policy Rule​

  1. Navigate to Policies and open your call policy
  2. Select the rule that handles incoming calls
  3. Click Associate App and select your LDAP Contact Resolution app
  4. Save the rule

When the rule runs the LDAP app, it checks for a usable local contact first and queries the configured directory on a miss.

Saved LDAP Results and Expiry​

The LDAP app saves successful live lookup results in the local contact store and renews their expiry when the directory returns a fresh match. The Contact cache TTL (minutes) setting is a time to live, not a scheduled directory sync. Its default is 30 minutes and the accepted range is 1–1,439 minutes. LDAP does not have the REST app's Cache contacts with TTL toggle.

At the next matching call after a saved LDAP result expires, the result is treated as a miss and CallTelemetry queries the directory when no separate eligible local contact resolves the number. If the directory is unavailable, the app does not return the expired LDAP caller-name modifier; a separate eligible manual/imported contact or rule modifier can still supply a name. A bounded background cleanup removes expired LDAP lookup records every five minutes. Call processing checks expiry independently, so cleanup timing does not extend a result's usable lifetime.

Manual/imported contacts remain available. Older contacts saved before expiry tracking remain ordinary directory records and are not retroactively refreshed; review or remove an outdated contact to allow a fresh lookup.

Active Directory Example​

Host: ad.company.com
Port: 636
SSL: Enabled
Base DN: DC=company,DC=com
Bind DN: CN=svc-calltelemetry,OU=Service Accounts,DC=company,DC=com

The service account needs only read permissions -- no write access is required. Set the Base DN to your domain root or a specific organizational unit to narrow the search scope.

OpenLDAP Example​

Host: ldap.company.com
Port: 389
SSL: Disabled
Base DN: dc=company,dc=com
Bind DN: cn=readonly,dc=company,dc=com

For OpenLDAP servers without TLS, use port 389. If your environment requires encrypted connections, configure your OpenLDAP server with StartTLS or LDAPS on port 636 and enable the SSL/TLS option.

Search Filter and Attribute Mapping​

Search Filter​

The search filter determines how Call Telemetry finds the caller in your directory. The default filter searches the telephoneNumber attribute:

(telephoneNumber=%s)

Where %s is replaced with the caller's phone number at runtime. To search across multiple phone attributes (office, mobile, IP phone), use an OR filter:

(|(telephoneNumber=%s)(mobile=%s)(ipPhone=%s))

Phone Search Patterns​

The system automatically tries multiple phone number variations to maximize match rates. By default, it searches with these patterns for each call:

  • %s -- the number as-is
  • +%s -- with a leading +
  • 1%s -- with a leading 1 (North American country code)

This means if a caller dials from 4085551234, Call Telemetry also checks for +4085551234 and 14085551234 in your directory, improving match rates when phone number formats vary between CUCM and your directory.

Attribute Mapping​

The LDAP app maps directory attributes to contact fields. These are the defaults, which you can customize to match your directory schema:

Contact FieldDefault LDAP AttributeDescription
NamedisplayNameDisplayed as the caller name on Cisco IP phones
CompanycompanyAvailable in policy rules and call history
DepartmentdepartmentAvailable in policy rules and call history
EmailmailAvailable in policy rules and call history

The resolved name replaces the raw phone number on the destination phone's display. Additional fields are available for use in policy rules, alerting, and reporting.

Testing Your Configuration​

Call Test Verification​

  1. Navigate to Policies → Call Test
  2. Enter a calling number that matches a directory entry
  3. Run the test
  4. Verify the resolved name appears in the call test results
  5. Check the CURRI response panel to confirm the Calling Party Name shows the directory name

The LDAP Contact Resolution app supplies a caller-name modifier when it finds a contact. A nonempty New Calling Name rule modifier takes precedence over the app value.

Troubleshooting​

Connection refused? Verify the LDAP server is reachable from the Call Telemetry appliance. Check firewall rules for ports 389 (LDAP) or 636 (LDAPS).

Bind failed? Verify the bind DN and password are correct. For Active Directory, use the full distinguished name format (CN=user,OU=...,DC=...), not the user@domain.com UPN format.

TLS/SSL errors? If using self-signed certificates, verify that the Call Telemetry appliance trusts the certificate authority. Try disabling SSL temporarily to isolate whether the issue is TLS-related or a connectivity problem.

No results returned? Verify the base DN includes the OU where your contacts are stored. Confirm the service account has read permissions. Check that the phone number format in your directory matches what CUCM sends -- the phone search patterns help with common variations, but unusual formats may need a custom search filter.

Slow lookups? Ensure the base DN is scoped as narrowly as possible. Searching from the domain root traverses the entire directory tree. Narrowing to a specific OU (e.g., OU=Employees,DC=company,DC=com) reduces search time significantly.