mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2025-12-19 04:37:43 +00:00
minor logging
This commit is contained in:
@@ -430,6 +430,7 @@ class CallSession extends Emitter {
|
||||
const {writeCallCount, writeCallCountSP, writeCallCountApp} = this.req.srf.locals;
|
||||
if (!this.req.locals.callCountNudged) {
|
||||
this.req.locals.callCountNudged = true;
|
||||
this.logger.debug('decrementing call count at end of call');
|
||||
await nudgeCallCounts(this.logger, {
|
||||
service_provider_sid: this.service_provider_sid,
|
||||
account_sid: this.account_sid,
|
||||
|
||||
@@ -263,6 +263,7 @@ module.exports = function(srf, logger) {
|
||||
res.once('end', async({status}) => {
|
||||
if (status > 200 && !req.locals.callCountNudged) {
|
||||
req.locals.callCountNudged = true;
|
||||
logger.debug('decrementing call count due to call rejection');
|
||||
nudgeCallCounts(logger, {
|
||||
service_provider_sid,
|
||||
account_sid,
|
||||
|
||||
Reference in New Issue
Block a user