cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

Zoom CRC Help with Speed Dial Macro

dboggs
Level 1
Level 1

Issue to solve:  Zoom API constantly changes the SIP number each time the unit disconnects and reconnects to the API.  In order for the speed dial to work the unit MUST dial in using the assigned SIP address so it's recognized as a CRC license unit for any zoom meeting the CE joins.

--------------macro-------

const xapi = require('xapi');

function callZoom(contact){
  console.log(contact);
}

xapi.event.on('UserInterface Extensions Panel Clicked', (event) => {
if (event.PanelId === 'Zoom-Call') {

xapi.command('Phonebook Search',
  {PhonebookType"Local"SearchString"Zoom"SearchFilter"People"ContactType"Contact"}).then(callZoom);
}

});
--------end of macro----
results in console
 
21:08:57Zoom-Call{"Contact":[{"ContactId":"localContactId-1","ContactMethod":[{"CallRate":"1920","CallType":"Video","ContactMethodId":"1","Device":"Video","Number":"0..10000320000112..02.11abcdef@vip2.zoomcrc.com","Protocol":"SIP","id":"1"}],"Name":"Join Zoom Meeting","Tag":"Favorite","id":"1"}],"ResultInfo":{"Limit":"50","Offset":"0","TotalRows":"1"},"status":"OK"}
 
What's the next step in code to get the unit to 'Dial' the number found in the contact?
Thoughts?  Ideas?
Who Me Too'd this topic