Feature/sp limits (#49)

* add account and service provider call limits

* add custom headers when rejecting calls due to max calls limit
This commit is contained in:
Dave Horton
2022-09-20 13:12:49 +02:00
committed by GitHub
parent ca0c9c157c
commit 213e84f59c
8 changed files with 145 additions and 45 deletions

6
app.js
View File

@@ -44,7 +44,8 @@ const {
lookupAppByTeamsTenant,
lookupAccountBySipRealm,
lookupAccountBySid,
lookupAccountCapacitiesBySid
lookupAccountCapacitiesBySid,
queryCallLimits
} = require('@jambonz/db-helpers')({
host: process.env.JAMBONES_MYSQL_HOST,
user: process.env.JAMBONES_MYSQL_USER,
@@ -88,7 +89,8 @@ srf.locals = {...srf.locals,
lookupAppByTeamsTenant,
lookupAccountBySid,
lookupAccountBySipRealm,
lookupAccountCapacitiesBySid
lookupAccountCapacitiesBySid,
queryCallLimits
},
realtimeDbHelpers: {
createSet,