From fa70e0e9cfcc6d469e198c60b6570353858400eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <rafael.carre@savoirfairelinux.com> Date: Tue, 9 Aug 2011 13:56:58 -0400 Subject: [PATCH] AudioRtpFactory: return cached type of rtp session. The rtp session can have disappeared if the call was put on hold --- sflphone-common/src/audio/audiortp/AudioRtpFactory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sflphone-common/src/audio/audiortp/AudioRtpFactory.h b/sflphone-common/src/audio/audiortp/AudioRtpFactory.h index a6041a8322..78fb34d223 100644 --- a/sflphone-common/src/audio/audiortp/AudioRtpFactory.h +++ b/sflphone-common/src/audio/audiortp/AudioRtpFactory.h @@ -116,7 +116,7 @@ class AudioRtpFactory * Sdes = 2 */ RtpMethod getAudioRtpType (void) const { - return _rtpSession->getAudioRtpType(); + return _keyExchangeProtocol; } /** @@ -163,7 +163,7 @@ class AudioRtpFactory // Field used when initializinga udio rtp session // May be set manually or from config using initAudioRtpConfig - int _keyExchangeProtocol; + RtpMethod _keyExchangeProtocol; // Field used when initializinga udio rtp session // May be set manually or from config using initAudioRtpConfig -- GitLab