mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-07-04 19:32:04 +00:00
support srtp for sips sipuri outbound call (#224)
* support srtp for sips sipuri outbound call * wip * wip * add env variable for disable the srtp for sipURI
This commit is contained in:
@@ -237,6 +237,11 @@ class CallSession extends Emitter {
|
|||||||
this.logger.info(`sending call to registered user ${destUri}`);
|
this.logger.info(`sending call to registered user ${destUri}`);
|
||||||
}
|
}
|
||||||
else if (this.req.locals.target === 'forward') {
|
else if (this.req.locals.target === 'forward') {
|
||||||
|
if (process.env.JAMBONES_SIPS_FORWARD_SRTP && this.req.uri.startsWith('sips:')) {
|
||||||
|
this.logger.info({uri: this.req.uri}, 'using SRTP/TLS for forwarded sips: call');
|
||||||
|
this.rtpEngineOpts = makeRtpEngineOpts(this.req, false, true, false, false);
|
||||||
|
encryptedMedia = true;
|
||||||
|
}
|
||||||
uris = [{
|
uris = [{
|
||||||
private_network: await isPrivateVoipNetwork(this.req.uri),
|
private_network: await isPrivateVoipNetwork(this.req.uri),
|
||||||
uri: this.req.uri
|
uri: this.req.uri
|
||||||
|
|||||||
Reference in New Issue
Block a user