Compare commits

...
1 Commits
Author SHA1 Message Date
Dave Horton d0306cd3b5 avoid adding multiple reset flags to rtpengine params 2022-01-17 18:44:47 -05:00
+2 -1
View File
@@ -484,7 +484,8 @@ Duration=${payload.duration} `
direction,
sdp: req.body,
};
if (reason) opts.flags.push('reset');
if (reason && opts.flags && !opts.flags.includes('reset')) opts.flags.push('reset');
let response = await this.offer(opts);
if ('ok' !== response.result) {