mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
fix crashing bug with uncaught exception in session.updateCall
This commit is contained in:
@@ -1635,6 +1635,7 @@ Duration=${duration} `
|
|||||||
async updateCall(opts, callSid) {
|
async updateCall(opts, callSid) {
|
||||||
this.logger.debug(opts, 'CallSession:updateCall');
|
this.logger.debug(opts, 'CallSession:updateCall');
|
||||||
|
|
||||||
|
try {
|
||||||
if (opts.call_status) {
|
if (opts.call_status) {
|
||||||
return this._lccCallStatus(opts);
|
return this._lccCallStatus(opts);
|
||||||
}
|
}
|
||||||
@@ -1689,6 +1690,9 @@ Duration=${duration} `
|
|||||||
if (opts.whisper) {
|
if (opts.whisper) {
|
||||||
return this._lccWhisper(opts, callSid);
|
return this._lccWhisper(opts, callSid);
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
this.logger.info({err, opts, callSid}, 'CallSession:updateCall - error updating call');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user