From f580bc60f5c24d5688027bdd4e7fbb41f5bc8bb2 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 11 Aug 2022 14:32:08 +0200 Subject: [PATCH] bugfix: regression from recent change to pass resources to tasks as an object --- lib/tasks/dial.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tasks/dial.js b/lib/tasks/dial.js index 1581aeba..e197e262 100644 --- a/lib/tasks/dial.js +++ b/lib/tasks/dial.js @@ -376,9 +376,8 @@ class TaskDial extends Task { } async _initializeInbound(cs) { - const ep = await cs._evalEndpointPrecondition(this); + const {ep} = await cs._evalEndpointPrecondition(this); this.epOther = ep; - debug(`Dial:__initializeInbound allocated ep for incoming call: ${ep.uuid}`); /* send outbound legs back to the same SBC (to support static IP feature) */ if (!this.proxy) this.proxy = `${cs.req.source_address}:${cs.req.source_port}`;