Feat/devices call other (#491)

* calls between clients on same domain

* wip

* wip

* wip

* wip
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2023-10-20 13:45:13 +02:00
1 parent 7992bc6ca0
commit 24fccbdae5
4 files changed
+55 -4

No files matched your search

+3
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,