initial support for conference and queues

This commit is contained in:
Dave Horton committed 2020-05-06 15:27:24 -04:00
1 parent 419c5ea9fd
commit a0508a2494
18 files changed
+711 -68

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ module.exports = function(srf, logger) {
const {lookupAppByPhoneNumber, lookupAppBySid, lookupAppByRealm} = srf.locals.dbHelpers;
function initLocals(req, res, next) {
const callSid = uuidv4();
const callSid = req.has('X-Retain-Call-Sid') ? req.get('X-Retain-Call-Sid') : uuidv4();
req.locals = {
callSid,
logger: logger.child({callId: req.get('Call-ID'), callSid})