SWITCH_DECLARE(void) switch_rtp_break(switch_rtp_t *rtp_session)
{
- char o = 42;
+ int o = 42;
switch_size_t len = sizeof(o);
switch_assert(rtp_session != NULL);
goto end;
}
- if (bytes && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ) && switch_sockaddr_get_port(rtp_session->from_addr)) {
+ if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_BREAK)) {
+ switch_clear_flag_locked(rtp_session, SWITCH_RTP_FLAG_BREAK);
+ do_2833(rtp_session);
+ bytes = 0;
+ return_cng_frame();
+ }
+
+ if (bytes > 12 && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ) && switch_sockaddr_get_port(rtp_session->from_addr)) {
const char *tx_host;
const char *old_host;
char bufa[30], bufb[30];
}
}
- if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_BREAK)) {
- switch_clear_flag_locked(rtp_session, SWITCH_RTP_FLAG_BREAK);
- do_2833(rtp_session);
- bytes = 0;
- return_cng_frame();
- }
-
if (bytes && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA)) {
/* Fast PASS! */
*flags |= SFF_PROXY_PACKET;