diff --git a/lib/call-session.js b/lib/call-session.js index 7c2afbf..cd41398 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -568,7 +568,8 @@ class CallSession extends Emitter { this.logger.info(`rtpengine answer failed with ${JSON.stringify(response)}`); throw new Error(`rtpengine failed: ${response['error-reason']}`); } - return response.sdp; + const sdpTmp = response.sdp.replace('a=sendonly', 'a=sendrecv'); + return sdpTmp; } }, { cbRequest: async(err, inv) => {