Commit 8cef71cd authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Don't let the daemon think crypto is enabled when it's not

parent 644cbad3
...@@ -108,15 +108,8 @@ class AudioRtpFactory ...@@ -108,15 +108,8 @@ class AudioRtpFactory
*/ */
void updateDestinationIpAddress (void); void updateDestinationIpAddress (void);
/** bool isSdesEnabled (void) const {
* @param None return _srtpEnabled && _keyExchangeProtocol == sfl::Sdes;
* @return The internal audio rtp session type
* Symmetric = 0
* Zrtp = 1
* Sdes = 2
*/
RtpMethod getAudioRtpType (void) const {
return _keyExchangeProtocol;
} }
/** /**
......
...@@ -1399,7 +1399,7 @@ void sdp_media_update_cb (pjsip_inv_session *inv, pj_status_t status) ...@@ -1399,7 +1399,7 @@ void sdp_media_update_cb (pjsip_inv_session *inv, pj_status_t status)
// We did not found any crypto context for this media, RTP fallback // We did not found any crypto context for this media, RTP fallback
if (!nego_success && call->getAudioRtp()->getAudioRtpType() == sfl::Sdes) { if (!nego_success && call->getAudioRtp()->isSdesEnabled()) {
call->getAudioRtp()->stop(); call->getAudioRtp()->stop();
call->getAudioRtp()->setSrtpEnabled (false); call->getAudioRtp()->setSrtpEnabled (false);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment