mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-07-04 19:32:04 +00:00
use ws rather than tcp for rtpengine connection in K8S
This commit is contained in:
@@ -90,7 +90,7 @@ const {initLocals, checkLimits, route} = require('./lib/middleware')(srf, logger
|
||||
const {getRtpEngine, setRtpEngines} = require('@jambonz/rtpengine-utils')([], logger, {
|
||||
emitter: stats,
|
||||
dtmfListenPort: process.env.DTMF_LISTEN_PORT || 22225,
|
||||
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.getRtpEngine = getRtpEngine;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user