Feat/devices call other (#491)

* calls between clients on same domain

* wip

* wip

* wip

* wip
This commit is contained in:
Hoan Luu Huu
2023-10-20 18:45:13 +07:00
committed by GitHub
parent 7992bc6ca0
commit 24fccbdae5
4 changed files with 55 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ const {
PORT,
NODE_ENV,
} = require('../config');
const Registrar = require('@jambonz/mw-registrar');
const assert = require('assert');
function initMS(logger, wrapper, ms) {
@@ -177,6 +178,7 @@ function installSrfLocals(srf, logger) {
host: JAMBONES_REDIS_HOST,
port: JAMBONES_REDIS_PORT || 6379
}, logger, tracer);
const registrar = new Registrar(logger, client);
const {
synthAudio,
getNuanceAccessToken,
@@ -204,6 +206,7 @@ function installSrfLocals(srf, logger) {
srf.locals = {...srf.locals,
dbHelpers: {
client,
registrar,
pool,
lookupAppByPhoneNumber,
lookupAppByRegex,