mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user