route createCall api requests among active freeswitch servers

This commit is contained in:
Dave Horton
2020-04-20 10:12:00 -04:00
parent 61a5ce2672
commit 993833212f
2 changed files with 16 additions and 6 deletions

4
app.js
View File

@@ -21,7 +21,8 @@ const {
retrieveCall,
deleteCall,
listCalls,
purgeCalls
purgeCalls,
retrieveSet
} = require('jambonz-realtimedb-helpers')({
host: process.env.JAMBONES_REDIS_HOST || 'localhost',
port: process.env.JAMBONES_REDIS_PORT || 6379
@@ -47,6 +48,7 @@ Object.assign(app.locals, {
deleteCall,
listCalls,
purgeCalls,
retrieveSet,
lookupAppBySid,
lookupAccountBySid
});