add support for using ws to connect to rtpengine

This commit is contained in:
Dave Horton
2022-01-10 22:00:04 -05:00
parent 804bb890b5
commit e9184ad208
3 changed files with 173 additions and 105 deletions

3
app.js
View File

@@ -55,7 +55,8 @@ const {createSet, retrieveSet, addToSet, removeFromSet, incrKey, decrKey} = requ
const {getRtpEngine, setRtpEngines} = require('@jambonz/rtpengine-utils')([], logger, {
emitter: stats,
dtmfListenPort: process.env.DTMF_LISTEN_PORT || 22224
dtmfListenPort: process.env.DTMF_LISTEN_PORT || 22224,
useWS: process.env.RTPENGINE_USE_WS
});
srf.locals = {...srf.locals,
stats,