forked from Mirrors/freeswitch
FS-10622: [core] Auto-fixing audio codec from G722 to PCMU although PCMU was not negotiated #resolve
This commit is contained in:
parent
212eb9b921
commit
efcc6c4e93
@ -2889,6 +2889,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_read_frame(switch_core_session
|
||||
(!smh->mparams->recv_te || engine->read_frame.payload != smh->mparams->recv_te) &&
|
||||
(!smh->mparams->te || engine->read_frame.payload != smh->mparams->te) &&
|
||||
!switch_test_flag((&engine->read_frame), SFF_CNG) &&
|
||||
!switch_test_flag((&engine->read_frame), SFF_PLC) &&
|
||||
engine->read_frame.payload != engine->cur_payload_map->recv_pt &&
|
||||
engine->read_frame.payload != engine->cur_payload_map->pt) {
|
||||
|
||||
|
@ -6187,9 +6187,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
|
||||
status = SWITCH_STATUS_SUCCESS;
|
||||
*bytes = switch_jb_get_last_read_len(rtp_session->jb);
|
||||
rtp_session->last_rtp_hdr = rtp_session->recv_msg.header;
|
||||
if (pt > -1) {
|
||||
rtp_session->last_rtp_hdr.pt = pt;
|
||||
}
|
||||
rtp_session->last_rtp_hdr.pt = pt;
|
||||
}
|
||||
break;
|
||||
case SWITCH_STATUS_BREAK:
|
||||
|
Loading…
Reference in New Issue
Block a user