cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
927
Views
0
Helpful
3
Replies

Quick Dial Macro for MX700 & Room Kit

Ruben Trujillo
Level 4
Level 4

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@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@domain.com</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
1 Accepted Solution

Accepted Solutions

Try with replacing xapi.Command ('Dial', with this xapi.command('Dial',

And I think that you need to match the name of the panel ID between your macro and the trigger. So change the <PanelId>speeddials</PanelId> to <PanelId>dial_microsoft</PanelId>



Response Signature


View solution in original post

3 Replies 3

Try with replacing xapi.Command ('Dial', with this xapi.command('Dial',

And I think that you need to match the name of the panel ID between your macro and the trigger. So change the <PanelId>speeddials</PanelId> to <PanelId>dial_microsoft</PanelId>



Response Signature


Ruben Trujillo
Level 4
Level 4

That fixed it. Thanks!

Glad to hear that. Please use the helpful vote if you think that it was of help to you.



Response Signature