]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10267: [freeswitch-core] zrtp_enrollment broken since 1.6.13 #resolve
authorBrian West <brian@freeswitch.org>
Mon, 8 May 2017 21:58:16 +0000 (16:58 -0500)
committerBrian West <brian@freeswitch.org>
Mon, 8 May 2017 21:58:23 +0000 (16:58 -0500)
src/switch_rtp.c

index 4abf64def0b49ef627487ac8a498d624f17bfab7..103d3f6ab060f54e8e8c788daa0331bf4e16751f 100644 (file)
@@ -5568,6 +5568,11 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
                                        switch_mutex_lock(rtp_session->flag_mutex);
                                        for (pmap = *rtp_session->pmaps; pmap && pmap->allocated; pmap = pmap->next) {
 
+                                               if (ntohl(*(int *)(b+4)) == ZRTP_MAGIC_COOKIE) {
+                                                       accept_packet = 1;
+                                                       break;
+                                               }
+
                                                if (!pmap->negotiated) {
                                                        continue;
                                                }