Enabling Directory Services on a Cisco IP Phone in CME
The Local Directory function of an IP phone operating in a CME environment, accessed via Directories > Corporate Directory, relies on HTTP services provided by the CME router. Security best practice typically dictates the HTTP be disabled, so ensure it is enabled before proceeding or troubleshooting. The Local Directory uses the "Name" configuration, along with the ephone-dn, to populate entries. In addition, as administrator you can add entries for lookup by all staff.
In the example below, we configure the Directory to list by Lastname first, enable the local directory and add 2 entries. Note also James and Sam's ephone-dn configuration.
ip http server
!
telephony-service
 directory last-name-first
 service local-directory
 directory entry 1 123123123 name Taxi
 directory entry 2 456456 name Pizza
!
ephone-dn 1
 number 2001
 name James
!
ephone-dn 2
 number 2002
 name Sam
!
Now, verify in the output below the impact when a user hits "Local Directory" on the physical device. We can actually see at a very low level all key presses and page results.
Feb 11 11:33:23.687: lds_urlhook, url=/localdirectory/query
Feb 11 11:33:23.687: Wed, 11 Feb 2009 11:33:23 GMT 192.168.253.1 /localdirectory/query ok
      Protocol = HTTP/1.1 Method = GET
Feb 11 11:33:23.687:
Feb 11 11:33:23.691: local_directory_search_get_action: minor = 1, uri_index =
Feb 11 11:33:23.691: ipkeyswitch_ldir_send_file 1: page 1
Feb 11 11:33:23.691: ipkeyswitch_ldir_send_file 3: to send prologue
Observe the search being executed, and our results returned. Neat, huh!
Feb 11 11:33:26.747: lds_urlhook, url=/localdirectory/search
Feb 11 11:33:26.747: Wed, 11 Feb 2009 11:33:26 GMT 192.168.253.1 /localdirectory/search ok
        Protocol = HTTP/1.1 Method = GET
Feb 11 11:33:26.747:
Feb 11 11:33:26.751: local_directory_search_get_action: minor = 2, uri_index =
Feb 11 11:33:26.751: ipkeyswitch_ldir_send_file 1: page 2
Feb 11 11:33:26.751: ipkeyswitch_ldir_send_file 3: to send prologue
Feb 11 11:33:26.751: ipkeyswitch_dir_search_result 1:
Feb 11 11:33:26.751: valid_ephone_dn check for number: 2001
Feb 11 11:33:26.751: ip_keyswitch_search_ephone_dn:
      f=James, l=
Feb 11 11:33:26.751: ip_keyswitch_search_ephone_dn:
      matches: 1
Feb 11 11:33:26.751: valid_ephone_dn check for number: 2002
Feb 11 11:33:26.751: ip_keyswitch_search_ephone_dn:
      f=Sam, l=
Feb 11 11:33:26.751: ip_keyswitch_search_ephone_dn:
      matches: 2


