From 018ef8ddd3621d3287e30dd05233a9c83a3c732a Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Mon, 6 Apr 2020 10:41:46 -0400 Subject: [PATCH] bugfix #13, rest outdial is properly canceled after timeout --- lib/tasks/rest_dial.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/rest_dial.js b/lib/tasks/rest_dial.js index 2acb10d0..3d88bf97 100644 --- a/lib/tasks/rest_dial.js +++ b/lib/tasks/rest_dial.js @@ -24,9 +24,9 @@ class TaskRestDial extends Task { /** * INVITE has just been sent at this point */ - async exec(cs, req) { + async exec(cs) { super.exec(cs); - this.req = req; + this.req = cs.req; this._setCallTimer(); await this.awaitTaskDone();