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 authored and GitHub committed 2023-09-22 08:12:34 -04:00
1 parent 991fff3386
commit 4e916acf6c
2 files changed
+8 -5

No files matched your search

+2 -1
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];