avoid adding multiple reset flags to rtpengine params

This commit is contained in:
Dave Horton
2022-01-17 18:39:51 -05:00
parent 13f7d583df
commit be354cde10
+2 -1
View File
@@ -501,7 +501,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) {