mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-10-04 02:04:19 +00:00
bugfix: fix ref error on this.req.locals.account.disable_cdrs
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
"jsx": false,
|
"jsx": false,
|
||||||
"modules": false
|
"modules": false
|
||||||
},
|
},
|
||||||
"ecmaVersion": 2018
|
"ecmaVersion": 2020
|
||||||
},
|
},
|
||||||
"plugins": ["promise"],
|
"plugins": ["promise"],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
|||||||
+4
-1
@@ -384,7 +384,10 @@ class CallSession extends Emitter {
|
|||||||
else if (this.req.locals.registration) trunk = 'user';
|
else if (this.req.locals.registration) trunk = 'user';
|
||||||
else trunk = 'sipUri';
|
else trunk = 'sipUri';
|
||||||
}
|
}
|
||||||
if (!this.req.locals.account.disable_cdrs) {
|
if (this.req.locals.account?.disable_cdrs) {
|
||||||
|
this.logger.debug('cdrs disabled for this account');
|
||||||
|
}
|
||||||
|
else {
|
||||||
this.req.locals.cdr = {
|
this.req.locals.cdr = {
|
||||||
...initCdr(this.req.srf, inv),
|
...initCdr(this.req.srf, inv),
|
||||||
service_provider_sid: this.req.locals.service_provider_sid,
|
service_provider_sid: this.req.locals.service_provider_sid,
|
||||||
|
|||||||
Reference in New Issue
Block a user