bugfix: rtpengine now generates internal IP on sdp for internal-facing streams

This commit is contained in:
Dave Horton
2020-06-07 14:51:52 -04:00
parent dccd57935e
commit 4f947ad3f2
3 changed files with 3 additions and 1 deletions

View File

@@ -116,7 +116,7 @@ class CallSession extends Emitter {
// rtpengine 'offer'
debug('sending offer command to rtpengine');
const response = await this.offer(this.rtpEngineOpts.offer);
const response = await this.offer(this.rtpEngineOpts.offer, {sdp: this.req.body});
debug(`response from rtpengine to offer ${JSON.stringify(response)}`);
this.logger.debug({offer: this.rtpEngineOpts.offer, response}, 'initial offer to rtpengine');
if ('ok' !== response.result) {

View File

@@ -10,6 +10,7 @@ function makeRtpEngineOpts(req, srcIsUsingSrtp, dstIsUsingSrtp, teams = false) {
common,
offer: Object.assign(
{'sdp': req.body, 'replace': ['origin', 'session-connection']},
{'direction': [ 'private', 'public']},
common,
dstIsUsingSrtp ? srtpOpts : rtpCharacteristics),
answer: Object.assign(

View File

@@ -27,6 +27,7 @@ services:
rtpengine:
image: drachtio/rtpengine:latest
command: rtpengine --interface private/172.39.0.12 --interface public/172.39.0.12!172.39.0.12
ports:
- "12222:22222/udp"
networks: