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();