]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11971: [core] fix 488 when receive invite with SRTP/RTP
authorLiyang <liyang@x-y-t.cn>
Tue, 30 Jul 2019 17:05:41 +0000 (01:05 +0800)
committerAndrey Volk <andywolk@gmail.com>
Wed, 31 Jul 2019 22:15:56 +0000 (02:15 +0400)
src/switch_core_media.c

index 811e93cd9829775bc91c294acacbd48c5ea2348c..81a3e8591ead8159912e7ed8f110c266130623dd 100644 (file)
@@ -5469,9 +5469,9 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
                        }
 
                        if (got_crypto == -1 && got_savp && !got_avp && !got_webrtc) {
-                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Declining invite with only SAVP because secure media is administratively disabled\n");
+                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Received invite with SAVP but secure media is administratively disabled\n");
                                match = 0;
-                               break;
+                               continue;
                        }
 
                        connection = sdp->sdp_connection;