add env JAMBONES_RECORD_ALL_CALLS to enable global call recording

This commit is contained in:
Dave Horton
2022-12-02 13:53:15 -05:00
parent b24ecf84d3
commit faafaa8549

View File

@@ -26,7 +26,8 @@ function makeRtpEngineOpts(req, srcIsUsingSrtp, dstIsUsingSrtp, teams = false) {
}
const common = {
'call-id': req.get('Call-ID'),
'replace': ['origin', 'session-connection']
'replace': ['origin', 'session-connection'],
'record call': process.env.JAMBONES_RECORD_ALL_CALLS ? 'yes' : 'no'
};
return {
common,