05-17-2022 02:04 PM
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:
Solved! Go to Solution.
05-18-2022 07:56 AM - edited 05-18-2022 08:01 AM
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>
05-18-2022 07:56 AM - edited 05-18-2022 08:01 AM
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>
05-18-2022 12:25 PM
That fixed it. Thanks!
05-18-2022 12:42 PM
Glad to hear that. Please use the helpful vote if you think that it was of help to you.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide