Locale support in Corporate Directory.asp

Version 1
    This document was generated from CDN thread

    Created by: MARIUS TALJAARD on 10-01-2011 08:29:22 AM
    Hi
    We have deployed the Cisco IP Phone Services SDK to offer the mobile number as an addition to the standard Corporate Directory with CUCM 8.0.3.
    This works.
     
    When viewing the display on the phone the Corporate Directory is always displayed in English.

    The example phone is configured as a French Phone in the attachment.
    The phones are configured to utilize the German, French or Italian Locale.
    The .asp file references the Windows version of the CUCM directory.
    Do I need to change something in the .asp file for compatibility with the CUCM 8.0.3 version?
     
    Thank you for any support to resolve this.
    In the Sniffer trace I can see that the locale is identified as French.

    Subject: RE: Locale support in Corporate Directory.asp
    Replied by: David Staudt on 19-01-2011 03:13:51 PM
    Note as always that the sample apps in the SDK are for illustrative purposes only and are not intended/supported for production use.  That being said, this particular sample, originally developed for CCM 4.0, is pretty dependent on the 4.0 windows platform, and uses some not-to-be-recommended techniques to do its thing.
     
    Looking at the .asp source code for the sample, it is clear that the script attempts to load a dictionary .asp file (present on the CCM file system), which the LDAP search COM object uses to provide the localization.  If this file is not present, then the LDAP component defaults to US English (the behaviour you are seeing.)  The dictionary .asp file is not even present on UCM later than 4.x, and in any case this sample script cannot be running on the UCM itself.
     
    Also note that the script obtains the locale identifcation via a URL parameter called 'locale' (configured as a parameter of the IP Phone service under UCM admin), not from the HTTP Accept-Language: request header (again a quick and easy shortcut that a robust app would do better.)
     
    The shortest route to hacking this script into something that kind of works would be to change the script to look for the dictionary .asp files on the local file system.  I've extracted the English and French dictionary files from a CM 4.1(2) server and attached to this post.  Be sure and check the script source code to ensure paths and locale names are all correct.

    Subject: RE: Locale support in Corporate Directory.asp
    Replied by: Frank Wakelin on 15-04-2011 02:28:09 PM
    Marius:

    Would you be interested in sharing your ASP script?  I'm looking to do the same thing (display multiple numbers retreived via LDAP).

    Subject: RE: Locale support in Corporate Directory.asp
    Replied by: Joaquim Almeida on 20-12-2012 12:50:24 PM
    Hi Marius,

    Can you share your ASP script? I'm looking to do the same thing (display mobile number, retreived via LDAP).
     
    Regards
    JA
    quote=MARIUS TALJAARD]Hi
    We have deployed the Cisco IP Phone Services SDK to offer the mobile number as an addition to the standard Corporate Directory with CUCM 8.0.3.
    This works.
     
    When viewing the display on the phone the Corporate Directory is always displayed in English.

    The example phone is configured as a French Phone in the attachment.
    The phones are configured to utilize the German, French or Italian Locale.
    The .asp file references the Windows version of the CUCM directory.
    Do I need to change something in the .asp file for compatibility with the CUCM 8.0.3 version?
     
    Thank you for any support to resolve this.
    In the Sniffer trace I can see that the locale is identified as French.