mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 17:26:03 +00:00
can't flush because you have a chance of dumping zrtp control frames
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13427 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
eb83431dcb
commit
31e7df4937
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user