bugfix: regression from recent change to pass resources to tasks as an object

This commit is contained in:
Dave Horton
2022-08-11 14:32:08 +02:00
parent 1a4f8563f2
commit f580bc60f5

View File

@@ -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}`;