fixed clean dualEp for rest dial dual_stream=true (#468)

* fixed clean dualEp for rest dial dual_stream=true

* fix

* fix

* fix

* fix

* fix
This commit is contained in:
Hoan Luu Huu
2023-09-22 19:12:34 +07:00
committed by GitHub
parent 991fff3386
commit 4e916acf6c
2 changed files with 8 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ const moment = require('moment');
* @extends CallSession
*/
class RestCallSession extends CallSession {
constructor({logger, application, srf, req, ep, tasks, callInfo, accountInfo, rootSpan}) {
constructor({logger, application, srf, req, ep, ep2, tasks, callInfo, accountInfo, rootSpan}) {
super({
logger,
application,
@@ -21,6 +21,7 @@ class RestCallSession extends CallSession {
});
this.req = req;
this.ep = ep;
this.ep2 = ep2;
// keep restDialTask reference for closing AMD
if (tasks.length) {
this.restDialTask = tasks[0];