avoid adding multiple reset flags to rtpengine params

This commit is contained in:
Dave Horton
2022-01-17 18:39:51 -05:00
parent 607fb3d127
commit d0306cd3b5

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) {