support for VoipCarriers that are customer PBXs

This commit is contained in:
Dave Horton
2020-02-08 10:39:17 -05:00
parent 1c9afcdf59
commit 9783afcff5
12 changed files with 271 additions and 799 deletions

8
app.js
View File

@@ -15,6 +15,10 @@ const {
listCalls,
purgeCalls
} = require('jambonz-realtimedb-helpers')(config.get('redis'), logger);
const {
lookupApplicationBySid,
lookupAccountBySid
} = require('jambonz-db-helpers')(config.get('mysql'), logger);
const PORT = process.env.HTTP_PORT || 3000;
passport.use(authStrategy);
@@ -25,7 +29,9 @@ Object.assign(app.locals, {
retrieveCall,
deleteCall,
listCalls,
purgeCalls
purgeCalls,
lookupApplicationBySid,
lookupAccountBySid
});
app.use(cors());