response to siprec invite should have a:recvonly if offer had a:sendonly (#298)

This commit is contained in:
Dave Horton
2023-04-04 21:02:21 -04:00
committed by GitHub
parent fe529c6bfb
commit e19ea629f0

View File

@@ -242,7 +242,8 @@ const createSipRecPayload = (sdp1, sdp2, logger) => {
.replace(/a=sendonly\r\n/g, '') .replace(/a=sendonly\r\n/g, '')
.replace(/a=direction:both\r\n/g, ''); .replace(/a=direction:both\r\n/g, '');
*/ */
return combinedSdp;
return combinedSdp.replace(/sendrecv/g, 'recvonly');
}; };
module.exports = { parseSiprecPayload, createSipRecPayload } ; module.exports = { parseSiprecPayload, createSipRecPayload } ;