deal with MODENDP-99

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7934 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-03-19 17:56:27 +00:00
parent 7ab6dd8999
commit aa0bea3d5c
6 changed files with 28 additions and 10 deletions

View File

@@ -1098,7 +1098,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
{
switch_size_t bytes = 0;
switch_status_t status;
uint8_t check = 1;
uint8_t check = 0;
stfu_frame_t *jb_frame;
int ret = -1;
@@ -1125,6 +1125,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
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;
do_cng = 1;
goto cng;
@@ -1154,8 +1155,8 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
} else if (bytes) {
check++;
}
if (check) {
if (check || bytes) {
do_2833(rtp_session);
}