bugfix #13, rest outdial is properly canceled after timeout

This commit is contained in:
Dave Horton
2020-04-06 10:41:46 -04:00
parent a3c077586f
commit 74404c155f

View File

@@ -24,9 +24,9 @@ class TaskRestDial extends Task {
/** /**
* INVITE has just been sent at this point * INVITE has just been sent at this point
*/ */
async exec(cs, req) { async exec(cs) {
super.exec(cs); super.exec(cs);
this.req = req; this.req = cs.req;
this._setCallTimer(); this._setCallTimer();
await this.awaitTaskDone(); await this.awaitTaskDone();