提交 efcc6c4e authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-10622: [core] Auto-fixing audio codec from G722 to PCMU although PCMU was not…

FS-10622: [core] Auto-fixing audio codec from G722 to PCMU although PCMU was not negotiated #resolve
上级 212eb9b9
......@@ -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:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论