From 036accab441a040e67eaa19d41b503e308bf4ef3 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Sat, 7 May 2022 18:36:49 -0400 Subject: [PATCH] dial: transcribe and listen should be based on the caller (A leg) endpoint --- lib/tasks/dial.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/dial.js b/lib/tasks/dial.js index 06c15f4b..08baacb0 100644 --- a/lib/tasks/dial.js +++ b/lib/tasks/dial.js @@ -606,8 +606,8 @@ class TaskDial extends Task { if (this.parentDtmfCollector) this._installDtmfDetection(cs, cs.dlg); if (this.childDtmfCollector) this._installDtmfDetection(cs, this.dlg); - if (this.transcribeTask) this.transcribeTask.exec(cs, this.ep); - if (this.listenTask) this.listenTask.exec(cs, this.ep); + if (this.transcribeTask) this.transcribeTask.exec(cs, this.epOther); + if (this.listenTask) this.listenTask.exec(cs, this.epOther); /* if we can release the media back to the SBC, do so now */ if (this.canReleaseMedia) this._releaseMedia(cs, sd);