79643261

Date: 2025-05-29 03:53:56
Score: 2
Natty:
Report link

My approach is to

// modify your function makeCall(target)
function makeCall(target) {
    outgoingSession = userAgent.call(target, callOptions);
    setupMedia(outgoingSession);
}

and then implement

session.connection.addEventListener('track', ({ track, streams: [stream] }) => {
    // logic identical to your peerConnection.addEventListener("track", (event) => {});
});

within setupMedia.

The specific reason, I suspect, is that addEventListener only captures newly added tracks. In your method, during outgoing calls, the audio may not be considered newly added?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Dragonborn