#142 add option to transcode incoming g729 calls to pcmu (#144)

This commit is contained in:
Dave Horton
2024-05-22 12:42:06 -04:00
committed by GitHub
parent 831005f7a1
commit f9ae466709
+2 -1
View File
@@ -30,7 +30,8 @@ function makeRtpEngineOpts(req, srcIsUsingSrtp, dstIsUsingSrtp, teams = false) {
const common = {
'call-id': req.get('Call-ID'),
'replace': ['origin', 'session-connection'],
'record call': process.env.JAMBONES_RECORD_ALL_CALLS ? 'yes' : 'no'
'record call': process.env.JAMBONES_RECORD_ALL_CALLS ? 'yes' : 'no',
...(process.env.JAMBONES_ACCEPT_G729 && { codec: { mask: 'g729', transcode: 'pcmu'}})
};
return {
common,