Skip to content

Instantly share code, notes, and snippets.

@miton18
Created August 25, 2020 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miton18/993d0486878d78db23dbcde424df6622 to your computer and use it in GitHub Desktop.
Save miton18/993d0486878d78db23dbcde424df6622 to your computer and use it in GitHub Desktop.
const xapi = require('xapi');
function guiEvent(event) {
console.log(event.WidgetId);
if (event.PanelId === 'cnf')// && event.Type === 'released')
xapi.command('Dial', { Number: 'conf@conf.cms' })
.then(console.log)
.catch(console.log);
}
xapi.event.on('UserInterface Extensions Panel Clicked', guiEvent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment