Speed dial for Teams Meetings

import xapi from 'xapi';

const speedDial = [

xapi.Command.UserInterface.Extensions.Panel.Save({ PanelId: 'speed_dial' }, `
    <Name>Teams Meeting</Name>
      <Name>Teams Meeting</Name>

      ${speedDial.map((number) => `


xapi.Event.UserInterface.Extensions.Widget.Action.on((event) => {
  if (event.Type === 'clicked') {    
    if (event.WidgetId.slice(0, 3) === 'sd_') {
      xapi.Command.Dial({ Number: event.WidgetId.slice(3) });

1 Like

If you use different macros for speedDials (like Pexip OTJ-Cloud) on the same Endpoint, please check NOT to use the same WidgetId prefix.

If different Macros listen for the same event then more than one call will be placed at the same tim. You can change these two lines in above macro to avoid the clash:

From: <WidgetId >sd_${number}</WidgetId >
To: <WidgetId >td_${number}</WidgetId >

From: if (event.WidgetId.slice(0, 3) === ‘sd_’) {
To: if (event.WidgetId.slice(0, 3) === ‘td_’) {