mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
response to siprec invite should have a:recvonly if offer had a:sendonly (#298)
This commit is contained in:
@@ -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 } ;
|
||||||
|
|||||||
Reference in New Issue
Block a user