[cisco-voip] Quick Dial Macro for MX700 & Room Kit

Ruben Trujillo rubent at adobe.com
Tue May 17 17:07:42 EDT 2022


Hello,

I'm using a quick dial macro on an MX700 and a Room Kit running CE 9.9.3. From the XML file I'm able to get the Quick Dial icon added to the Touch 10. I also uploaded the .js file to these endpoints but nothing happens when I press the icon. Below is the XML, Javascript code and the macro log. What am I getting wrong here?

QuickDialMacro.js
/**
* Add a Microsoft Teams quick dial to video endpoint using Cisco Webex Video Integration for Microsoft Teams
*/

import xapi from 'xapi';

//Replace "example" with your appropriate URI suffix below.
xapi.event.on('UserInterface Extensions Panel Clicked', (event) => {
if (event.PanelId === 'dial_microsoft') {
xapi.Command ('Dial', { Number: '123456789 at domain.com', Protocol: 'Sip' });
}
});

XML:
<Extensions>
<Version>1.5</Version>
<Panel>
<PanelId>speeddials</PanelId>
<Type>Home</Type>
<Icon>Camera</Icon>
<Order>1</Order>
<Color>#FF3D67</Color>
<Name>MS Teams Speed Dial</Name>
<Page>
<Name>Speed Dial</Name>
<Row>
<Name>Row</Name>
<Widget>
<WidgetId>sd_123456789 at domain.com</WidgetId<mailto:sd_123456789 at domain.com%3c/WidgetId>>
<Name>Call MS Teams</Name>
<Type>Button</Type>
<Options>size=3</Options>
</Widget>
</Row>
<Options>hideRowNames=1</Options>
</Page>
</Panel>
</Extensions>

Macro log:

15:06:09[system]Starting macros...
15:06:09QuickDialMacroTest2Loading...
15:06:10QuickDialMacroTest2Ready!
11:11:31QuickDialMacroTest2TypeError: undefined not callable (property 'Command' of [object Object])
at [anon] (duk_js_call.c:2918) internal
at [anon] (QuickDialMacroTest2:14) strict
at [anon] (extensions/xapi.js:8264) strict
at _dispatch (extensions/xapi.js:3978) strict
at [anon] (extensions/xapi.js:3982) strict preventsyield
at forEach () native strict preventsyield
at _dispatch (extensions/xapi.js:3983) strict
at [anon] (extensions/xapi.js:3982) strict preventsyield
at forEach () native strict preventsyield
at _dispatch (extensions/xapi.js:3983) strict
at [anon] (extensions/xapi.js:3982) strict preventsyield
[...]14

Thanks,
Ruben

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20220517/69a72ef0/attachment.htm>


More information about the cisco-voip mailing list