mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2026-05-06 08:47:09 +00:00
add sp_sid to alerts
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"Bash(git stash:*)",
|
||||
"Bash(git checkout:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -112,6 +112,7 @@ const checkAccountLimits = async(req, res, next) => {
|
||||
writeAlerts({
|
||||
alert_type: AlertType.ACCOUNT_DEVICE_LIMIT,
|
||||
account_sid,
|
||||
service_provider_sid: account.service_provider_sid,
|
||||
count: 0
|
||||
}).catch((err) => logger.info({err}, 'checkAccountLimits: error writing alert'));
|
||||
|
||||
@@ -124,6 +125,7 @@ const checkAccountLimits = async(req, res, next) => {
|
||||
writeAlerts({
|
||||
alert_type: AlertType.ACCOUNT_DEVICE_LIMIT,
|
||||
account_sid,
|
||||
service_provider_sid: account.service_provider_sid,
|
||||
count: limit_registrations
|
||||
}).catch((err) => logger.info({err}, 'checkAccountLimits: error writing alert'));
|
||||
return res.send(503, 'Max Devices Registered');
|
||||
|
||||
Reference in New Issue
Block a user