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

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

parent 644cbad3
......@@ -108,15 +108,8 @@ class AudioRtpFactory
*/
void updateDestinationIpAddress (void);
/**
* @param None
* @return The internal audio rtp session type
* Symmetric = 0
* Zrtp = 1
* Sdes = 2
*/
RtpMethod getAudioRtpType (void) const {
return _keyExchangeProtocol;
bool isSdesEnabled (void) const {
return _srtpEnabled && _keyExchangeProtocol == sfl::Sdes;
}
/**
......
......@@ -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
if (!nego_success && call->getAudioRtp()->getAudioRtpType() == sfl::Sdes) {
if (!nego_success && call->getAudioRtp()->isSdesEnabled()) {
call->getAudioRtp()->stop();
call->getAudioRtp()->setSrtpEnabled (false);
......
Markdown is supported
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