Add more logs for call disposition
This commit is contained in:
parent
81e1357723
commit
81fc9ff94d
4 changed files with 25 additions and 2 deletions
|
@ -1942,7 +1942,18 @@ export class CallingClass {
|
|||
if (call.state === CallState.Accepted) {
|
||||
acceptedTime = acceptedTime || Date.now();
|
||||
} else if (call.state === CallState.Ended) {
|
||||
await this.addCallHistoryForEndedCall(conversation, call, acceptedTime);
|
||||
try {
|
||||
await this.addCallHistoryForEndedCall(
|
||||
conversation,
|
||||
call,
|
||||
acceptedTime
|
||||
);
|
||||
} catch (error) {
|
||||
log.error(
|
||||
'Failed to add call history for ended call',
|
||||
Errors.toLogFormat(error)
|
||||
);
|
||||
}
|
||||
this.stopDeviceReselectionTimer();
|
||||
this.lastMediaDeviceSettings = undefined;
|
||||
delete this.callsByConversation[conversation.id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue