Skip to content

Instantly share code, notes, and snippets.

Avatar

Whitey WhiteyDude

  • Australia
View GitHub Profile
View sample.js
const calls = require('./calls');
srf.invite(async(req, res) => {
const ms = req.app.locals.ms;
const to_number = calls.convertToE164(req.calledNumber);
let ep, dlg;
try {
const {endpoint, dialog} = await ms.connectCaller(req, res);
ep = endpoint;
dlg = dialog;