mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-01-25 02:07:59 +00:00
bugfix: rtpengine now generates internal IP on sdp for internal-facing streams
This commit is contained in:
@@ -116,7 +116,7 @@ class CallSession extends Emitter {
|
|||||||
|
|
||||||
// rtpengine 'offer'
|
// rtpengine 'offer'
|
||||||
debug('sending offer command to rtpengine');
|
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)}`);
|
debug(`response from rtpengine to offer ${JSON.stringify(response)}`);
|
||||||
this.logger.debug({offer: this.rtpEngineOpts.offer, response}, 'initial offer to rtpengine');
|
this.logger.debug({offer: this.rtpEngineOpts.offer, response}, 'initial offer to rtpengine');
|
||||||
if ('ok' !== response.result) {
|
if ('ok' !== response.result) {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ function makeRtpEngineOpts(req, srcIsUsingSrtp, dstIsUsingSrtp, teams = false) {
|
|||||||
common,
|
common,
|
||||||
offer: Object.assign(
|
offer: Object.assign(
|
||||||
{'sdp': req.body, 'replace': ['origin', 'session-connection']},
|
{'sdp': req.body, 'replace': ['origin', 'session-connection']},
|
||||||
|
{'direction': [ 'private', 'public']},
|
||||||
common,
|
common,
|
||||||
dstIsUsingSrtp ? srtpOpts : rtpCharacteristics),
|
dstIsUsingSrtp ? srtpOpts : rtpCharacteristics),
|
||||||
answer: Object.assign(
|
answer: Object.assign(
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ services:
|
|||||||
|
|
||||||
rtpengine:
|
rtpengine:
|
||||||
image: drachtio/rtpengine:latest
|
image: drachtio/rtpengine:latest
|
||||||
|
command: rtpengine --interface private/172.39.0.12 --interface public/172.39.0.12!172.39.0.12
|
||||||
ports:
|
ports:
|
||||||
- "12222:22222/udp"
|
- "12222:22222/udp"
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user