use ws rather than tcp for rtpengine connection in K8S

This commit is contained in:
Dave Horton
2022-01-12 08:28:41 -05:00
parent 82ac86389d
commit 1cdaae7773

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,
protocol: process.env.K8S || process.env.RTPENGINE_USE_TCP_NG ? 'tcp' : 'udp'
protocol: process.env.RTPENGINE_NG_PROTOCOL || (process.env.K8S ? 'ws' : 'udp')
});
srf.locals = {...srf.locals,
stats,