mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-05-06 08:16:56 +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}`);
|
||||
}
|
||||
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 = [{
|
||||
private_network: await isPrivateVoipNetwork(this.req.uri),
|
||||
uri: this.req.uri
|
||||
|
||||
Reference in New Issue
Block a user