mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-11-09 04:49:08 +00:00
bugfix: fix ref error on this.req.locals.account.disable_cdrs
This commit is contained in:
1 parent
b68edf425d
commit
96daad8ea1
2 files changed
+5
-2
No files matched your search
+4
-1
@@ -384,7 +384,10 @@ class CallSession extends Emitter {
|
||||
else if (this.req.locals.registration) trunk = 'user';
|
||||
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 = {
|
||||
...initCdr(this.req.srf, inv),
|
||||
service_provider_sid: this.req.locals.service_provider_sid,
|
||||
|
||||
Reference in new issue
Block a user