Skip to content

Commit

Permalink
fix(call): remove ssrc copy code
Browse files Browse the repository at this point in the history
  • Loading branch information
sreenara committed Oct 17, 2023
1 parent 45e2038 commit 1a2f4b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/calling/calling/src/CallingClient/calling/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1796,14 +1796,14 @@ export class Call extends Eventing<CallEventTypes> implements ICall {
}

try {
const ssrc = sdp.match(/^a=ssrc.*/gim);
// const ssrc = sdp.match(/^a=ssrc.*/gim);
const ufrag = sdp.match(/^a=ice-ufrag.*/gim);
const pwd = sdp.match(/^a=ice-pwd.*/gim);
const fingerprint = sdp.match(/^a=fingerprint.*/gim);
const candidates = sdp.match(/^a=candidate.*/gim);
const videoPortMatch = sdp.match(/^m=video (?:\d+)/gim);
if (pwd && pwd.length > 1) return sdp;
let ssrcS = '';
// let ssrcS = '';
let ufragS = '';
let pwdS = '';
let fingerprintS = '';
Expand All @@ -1814,7 +1814,7 @@ export class Call extends Eventing<CallEventTypes> implements ICall {
if (videoPortS && videoPortS.length) videoPort = parseInt(videoPortS[0], 10);
}
if (!videoPort) return sdp;
if (ssrc && ssrc.length) ssrcS = `${ssrc[0]}\r\n`;
// if (ssrc && ssrc.length) ssrcS = `${ssrc[0]}\r\n`;
if (ufrag && ufrag.length) ufragS = `${ufrag[0]}\r\n`;
if (pwd && pwd.length) pwdS = `${pwd[0]}\r\n`;
if (fingerprint && fingerprint.length) fingerprintS = `${fingerprint[0]}\r\n`;
Expand All @@ -1825,7 +1825,8 @@ export class Call extends Eventing<CallEventTypes> implements ICall {
}
}
sdp += `${
ssrcS + ufragS + pwdS + fingerprintS + candidatesS
// ssrcS + ufragS + pwdS + fingerprintS + candidatesS
ufragS + pwdS + fingerprintS + candidatesS
}a=rtcp-mux\r\na=setup:passive\r\n`;
} catch (e) {
log.info(`Error: ${e}`, {
Expand Down

0 comments on commit 1a2f4b4

Please sign in to comment.