This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |