cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
620
Views
0
Helpful
4
Replies

How can we change the locale(display language) programmatically?

ray_skynet
Level 1
Level 1

Hi, all. I have a question about the AXL,

I want to change the locale from English United State to Thai Thailand but, I have no any idea which funcion. I found the updatePhone, but it seem to many parameter. Please kindly advice me.

1 Accepted Solution

Accepted Solutions

This means that it worked out. If you look at the spec (e.g. http://developer.cisco.com/c/document_library/get_file?folderId=192390&name=DLFE-11111.zip&redirect=http%3A%2F%2Fdeveloper.cisco.com%2Fweb%2Faxl%2Fdocs%3Fp_p_id%3Ddoc_library_summary_portlet_WAR_doclibrarysummaryportlet_INSTANCE_DXka%26p_p_lifecycle%...) you'll see that upon successful execution of updatePhone, you get the uuid of the device back. You'd get something that includes the string error if it fails.

Oh, one thing though: just as with ccmadmin, changing the locale won't change anything on the phone just now.. you have to reset the device to make the change sticky. To do that, you need to execute a doDeviceReset operation and set the isHardReset parameter to true.. that will perform a hard reset of the phone and when it comes back up, it'll load the new locale.

If you're using extension mobility, you need to log out the currently logged in user and then log him back in.. more info about that in the extension mobility api section:http://developer.cisco.com/web/emapi/home. With EM you'll need to give your axl user em proxy rights so that it can log in/out everybody so you don't need to know the user's password.

View solution in original post

4 Replies 4

stephan.steiner
Spotlight
Spotlight

updatePhone is the correct method... and the parameter you're looking for is userLocale. By default, it is empty which means the default English US locale, but you can set it to any other locale you have installed on your CCM (e.g. German Germany for German, or French France for French).

And, if you look at the axl documentation again, you'll see that very few parameters are actually mandatory.. something as simple as

SEP1234German Germany is all it takes to change the user locale on phone SEP1234.

I try to send as your suggest but the phone return something like belows

============================

http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

http://www.cisco.com/AXL/API/1.0" xmlns:xsi="http://www.cisco.com/AXL/API/1.0" sequence="1234">{B4FF13C9-6F7E-4DCC-B555-4620CED2CEFD}

This means that it worked out. If you look at the spec (e.g. http://developer.cisco.com/c/document_library/get_file?folderId=192390&name=DLFE-11111.zip&redirect=http%3A%2F%2Fdeveloper.cisco.com%2Fweb%2Faxl%2Fdocs%3Fp_p_id%3Ddoc_library_summary_portlet_WAR_doclibrarysummaryportlet_INSTANCE_DXka%26p_p_lifecycle%...) you'll see that upon successful execution of updatePhone, you get the uuid of the device back. You'd get something that includes the string error if it fails.

Oh, one thing though: just as with ccmadmin, changing the locale won't change anything on the phone just now.. you have to reset the device to make the change sticky. To do that, you need to execute a doDeviceReset operation and set the isHardReset parameter to true.. that will perform a hard reset of the phone and when it comes back up, it'll load the new locale.

If you're using extension mobility, you need to log out the currently logged in user and then log him back in.. more info about that in the extension mobility api section:http://developer.cisco.com/web/emapi/home. With EM you'll need to give your axl user em proxy rights so that it can log in/out everybody so you don't need to know the user's password.

it's work, thank you very much.

More question, if i just change the locale and reset the phone (ignored the other parameters such as username, line, display) the phone still save the original?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: