Skip to content
Snippets Groups Projects
Commit d252ab34 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1722] Use getLocalSSRCNetwork() to identify crypto context for in out RTP

parent e2fc783e
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ AudioSrtpSession::AudioSrtpSession (ManagerImpl * manager, SIPCall * sipcall) :
initializeMasterSalt();
initializeInputCryptoContext();
initializeOutputCryptoContext();
outputCryptoCtx->deriveSrtpKeys(0);
setInQueueCryptoContext(inputCryptoCtx);
......@@ -71,7 +72,7 @@ void AudioSrtpSession::initializeMasterSalt(void)
void AudioSrtpSession::initializeInputCryptoContext(void)
{
inputCryptoCtx = new ost::CryptoContext(0x12345678,
inputCryptoCtx = new ost::CryptoContext(getLocalSSRCNetwork(),
0, // roc,
0L, // keydr,
SrtpEncryptionAESCM, // encryption algo
......@@ -89,7 +90,7 @@ void AudioSrtpSession::initializeInputCryptoContext(void)
void AudioSrtpSession::initializeOutputCryptoContext(void)
{
outputCryptoCtx = new ost::CryptoContext(0x12345678,
outputCryptoCtx = new ost::CryptoContext(getLocalSSRCNetwork(),
0, // roc,
0L, // keydr,
SrtpEncryptionAESCM, // encryption algo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment