Cisco CE endpoints javascript macros
A collection of Javascript macros for Cisco Telepresence Endpoints registered to CUCM.
Macros
pab.js - A Javascript macro to allow Cisco CE Endpoints (V9.15.3.22) to access a users CUCM personal address book (PAB). Works best with CUCM extension mobility (EM), log into EM then press the PAB button on the Telepresence endpoint touch screen.
pinchange.js - A Javascript macro for Cisco CE Endpoints (V9.15.3.22). Allows a CUCM end user to change their extension mobilty pin. Designed around a CUCM implementation that uses directory numbers. This is a bit of a work in progress, be sure to change the code to match your enviroment. The comments should help with this. I have tried to make the macro respond to CUCM account "locked", and "account requires a pin change" but as you will see, the implementation is a little clumsy. This is due to the same error event, on the endpoint, being thrown for both "locked" and "pin change required".
Installation
Click on the link for the javascript/xml above. When the code page appears click the Download Raw file button top right. Once downloaded to your computer have a read of the code in your prefered editor. Read the comments at the start of each code page and throughout the code. Change to suit your enviroment.
Usage
Browse to your endpoint from the same computer you downloaded the XML and JavaScript onto. Then follow the instuctions below for each macro name.
pab.js - Download the javascript and XML code as above
- Navigate to UI Extentions Editor. On the enpoint.
- Click the menu icon (top right, three vertical lines).
- Click Import from file.
- Select the file PABroomcontrolconfig.xml.
This will place a button labeled PAB on your telepresence endpoint. Now upload the javascript macro.
- Browse to your endpoint.
- Navigate to Macro Editor.
- Click Import from file.
- Once uploaded toggle the macro on/off to on.
- Read the comments at the start of pab.js and throughout the macro. Change to suit your enviroment.
To use. Press the PAB button on the endpoint. Provide your log in PIN. The screen clears, press the PAB button again. Your CUCM personal address book entries should display.
pinchange.js - Use the same instructions to load onto your endpoint as pab.js except use the files pinchange.js and PINCHANGEroomcontrolconfig.xml.
Credits and references
Where to go to find out more about Javascript Macros on Cisco endpoints.