]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
can't flush because you have a chance of dumping zrtp control frames
authorBrian West <brian@freeswitch.org>
Fri, 22 May 2009 20:07:14 +0000 (20:07 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 22 May 2009 20:07:14 +0000 (20:07 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13427 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_rtp.c

index d6809cbdeca0b762abd5cb30b212233e5d86a97f..f2514b815074df9759ca8173297f0f363b3d290d 100644 (file)
@@ -439,8 +439,6 @@ static void zrtp_event_callback(zrtp_stream_t *stream, unsigned event)
        case ZRTP_EVENT_IS_SECURE_DONE:
                break;
        case ZRTP_EVENT_IS_SECURE:
-               /* Flush buffer just in case we have packets that aren't encrypted */
-               rtp_flush_read_buffer(rtp_session, SWITCH_RTP_FLUSH_ONCE);
                switch_set_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_SEND);
                switch_set_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_RECV);
                break;
@@ -453,8 +451,6 @@ static void zrtp_event_callback(zrtp_stream_t *stream, unsigned event)
        case ZRTP_EVENT_IS_PENDINGSECURE:
                break;
        case ZRTP_EVENT_IS_PENDINGCLEAR:
-               /* Flush buffer just in case we have packets that are encrypted */
-               rtp_flush_read_buffer(rtp_session, SWITCH_RTP_FLUSH_ONCE);
                switch_clear_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_SEND);
                switch_clear_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_RECV);
                break;