mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
handle exceptions if we invoke _lccCallHook with new url and it rejects for some reason (#1087)
This commit is contained in:
@@ -1799,6 +1799,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);
|
||||||
}
|
}
|
||||||
@@ -1856,6 +1857,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