From 8048e9cf887697555e68ab0c0cdca21642c0ea49 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Tue, 2 Dec 2025 19:22:20 -0500 Subject: [PATCH] when dialing the B leg we check to see if we are using opus on the A leg, and if so we outdial B with opus first; however we were incorrectly checking the SDP on the A leg invite not the 200 OK we send back (#1455) --- lib/tasks/dial.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/dial.js b/lib/tasks/dial.js index f14b6259..f79b7bf0 100644 --- a/lib/tasks/dial.js +++ b/lib/tasks/dial.js @@ -576,7 +576,7 @@ class TaskDial extends Task { proxy: `sip:${sbcAddress}`, callingNumber: this.callerId || fromUri.user, ...(this.callerName && {callingName: this.callerName}), - opusFirst: isOpusFirst(this.cs.ep.remote.sdp), + opusFirst: isOpusFirst(this.cs.ep.local.sdp), isVideoCall: this.cs.ep.remote.sdp.includes('m=video') };