]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8173 fix SAVPF printing when it's really AVPF
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 16 Sep 2015 23:08:44 +0000 (18:08 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 16 Sep 2015 23:08:44 +0000 (18:08 -0500)
src/switch_core_media.c

index 1601e853823a9a0b46126a31bbe1fc4182b5ee05..4c7456ad2f8e247d59b9d66bb31b2de0739ba756 100644 (file)
@@ -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";
+                       }
                }
        }