Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

DTPORTAL-16979 Prevent inappropriate transcoding #3

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions channels/chan_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -13695,10 +13695,8 @@ static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p, int
ast_str_append(&a_audio, 0, "a=maxptime:%d\r\n", max_audio_packet_size);
}

if (!ast_test_flag(&p->flags[0], SIP_OUTGOING)) {
ast_debug(1, "Setting framing on incoming call: %u\n", min_audio_packet_size);
ast_rtp_codecs_set_framing(ast_rtp_instance_get_codecs(p->rtp), min_audio_packet_size);
}
ast_debug(1, "Setting framing on %s call: %u\n", ast_test_flag(&p->flags[0], SIP_OUTGOING) ? "outgoing" : "incoming", min_audio_packet_size);
ast_rtp_codecs_set_framing(ast_rtp_instance_get_codecs(p->rtp), min_audio_packet_size);

if (!doing_directmedia) {
if (ast_test_flag(&p->flags[2], SIP_PAGE3_ICE_SUPPORT)) {
Expand Down