1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Log the call ID when logging that we've received VoIP events

Should make the logs a bit clearer
This commit is contained in:
David Baker
2021-01-19 18:11:41 +00:00
parent 3edccf496a
commit c289effba0

View File

@@ -1360,7 +1360,7 @@ export class MatrixCall extends EventEmitter {
} }
onHangupReceived = (msg) => { onHangupReceived = (msg) => {
logger.debug("Hangup received"); logger.debug("Hangup received for call ID " + + this.callId);
// party ID must match (our chosen partner hanging up the call) or be undefined (we haven't chosen // party ID must match (our chosen partner hanging up the call) or be undefined (we haven't chosen
// a partner yet but we're treating the hangup as a reject as per VoIP v0) // a partner yet but we're treating the hangup as a reject as per VoIP v0)
@@ -1373,7 +1373,7 @@ export class MatrixCall extends EventEmitter {
}; };
onRejectReceived = (msg) => { onRejectReceived = (msg) => {
logger.debug("Reject received"); logger.debug("Reject received for call ID " + this.callId);
// No need to check party_id for reject because if we'd received either // No need to check party_id for reject because if we'd received either
// an answer or reject, we wouldn't be in state InviteSent // an answer or reject, we wouldn't be in state InviteSent
@@ -1395,7 +1395,7 @@ export class MatrixCall extends EventEmitter {
}; };
onAnsweredElsewhere = (msg) => { onAnsweredElsewhere = (msg) => {
logger.debug("Answered elsewhere"); logger.debug("Call ID " + this.callId + " answered elsewhere");
this.terminate(CallParty.Remote, CallErrorCode.AnsweredElsewhere, true); this.terminate(CallParty.Remote, CallErrorCode.AnsweredElsewhere, true);
}; };