From: Anthony Minessale Date: Wed, 16 Sep 2015 23:08:44 +0000 (-0500) Subject: FS-8173 fix SAVPF printing when it's really AVPF X-Git-Tag: v1.6.2~1^2~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=944bad6708f5b168dbda0dea8b809fd1834b3b29;p=thirdparty%2Ffreeswitch.git FS-8173 fix SAVPF printing when it's really AVPF --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 1601e85382..4c7456ad2f 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -6690,10 +6690,18 @@ static const char *get_media_profile_name(switch_core_session_t *session, int se switch_assert(session); if (switch_channel_test_flag(session->channel, CF_AVPF)) { - if (switch_channel_test_flag(session->channel, CF_AVPF_MOZ)) { - return "UDP/TLS/RTP/SAVPF"; + if (switch_channel_test_flag(session->channel, CF_DTLS)) { + if (switch_channel_test_flag(session->channel, CF_AVPF_MOZ)) { + return "UDP/TLS/RTP/SAVPF"; + } else { + return "RTP/SAVPF"; + } } else { - return "RTP/SAVPF"; + if (switch_channel_test_flag(session->channel, CF_AVPF_MOZ)) { + return "UDP/AVPF"; + } else { + return "RTP/AVPF"; + } } }