mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-19 01:45:25 -07:00
Merge "chan_sip: Remember SDP negotiation on SIP_CODEC_INBOUND." into 14
This commit is contained in:
@@ -7376,6 +7376,12 @@ static void try_suggested_sip_codec(struct sip_pvt *p)
|
||||
|
||||
ao2_ref(fmt, -1);
|
||||
}
|
||||
|
||||
/* The original joint formats may have contained negotiated parameters (fmtp)
|
||||
* like the Opus Codec or iLBC 20. The cached formats contain the default
|
||||
* parameters, which could be different than the negotiated (joint) result. */
|
||||
ast_format_cap_replace_from_cap(p->jointcaps, original_jointcaps, AST_MEDIA_TYPE_UNKNOWN);
|
||||
|
||||
ao2_ref(original_jointcaps, -1);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user