add support for tcp connections to rtpengine, needed for K8S (#21)

* add support for tcp connections to rtpengine, needed for K8S

* update to correct version of @jambonz/rtpengine-utils

* update deps
This commit is contained in:
Dave Horton
2022-01-11 15:42:49 -05:00
committed by GitHub
parent e9184ad208
commit 82ac86389d
3 changed files with 508 additions and 59 deletions

2
app.js
View File

@@ -56,7 +56,7 @@ 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,
useWS: process.env.RTPENGINE_USE_WS
protocol: process.env.K8S || process.env.RTPENGINE_USE_TCP_NG ? 'tcp' : 'udp'
});
srf.locals = {...srf.locals,
stats,