diff --git a/sflphone-common/src/audio/audiortp/AudioRtpFactory.h b/sflphone-common/src/audio/audiortp/AudioRtpFactory.h index dab313e1a90fe7421da0f8b4b3b77e908142c817..d965e53f4751c43e1f0e516290b446df87e13f61 100644 --- a/sflphone-common/src/audio/audiortp/AudioRtpFactory.h +++ b/sflphone-common/src/audio/audiortp/AudioRtpFactory.h @@ -108,7 +108,7 @@ namespace sfl { /** * @param Set internal audio rtp session type (Symmetric, Zrtp, Sdes) */ - inline RtpMethod getAudioRtpType(RtpMethod type) { return _rtpSessionType = type; } + inline RtpMethod setAudioRtpType(RtpMethod type) { _rtpSessionType = type; } /** * Get the current AudioZrtpSession. Throws an AudioRtpFactoryException diff --git a/sflphone-common/src/sip/sipvoiplink.cpp b/sflphone-common/src/sip/sipvoiplink.cpp index e6fc242312753959ae01ad2ad4fd1e4fa5978fd7..2fac4d186e1f5239f299fdfdfb6bd73fb31ff5e5 100644 --- a/sflphone-common/src/sip/sipvoiplink.cpp +++ b/sflphone-common/src/sip/sipvoiplink.cpp @@ -3267,7 +3267,7 @@ void call_on_media_update (pjsip_inv_session *inv, pj_status_t status) // if RTPFALLBACK, change RTP session call->getAudioRtp()->stop(); - call->getAudioRtp()->getAudioRtpType(sfl::Symmetric); + call->getAudioRtp()->setAudioRtpType(sfl::Symmetric); call->getAudioRtp()->initAudioRtpSession(call); }