mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
bridge_softmix / res_rtp_asterisk: Fix packet loss and renegotiation issues.
This change does a few things to improve packet loss and renegotiation: 1. On outgoing RTP streams we will now properly reflect out of order packets and packet loss in the sequence number. This allows the remote jitterbuffer to better reorder things. 2. Video updates can now be discarded for a period of time after one has been sent to prevent flooding of clients. 3. For declined and removed streams we will now release any media session resources associated with them. This was not previously done and caused an issue where old state was being used for a new stream. 4. RTP bundling was not actually removing bundled RTP instances from the parent. This has been resolved by removing based on the RTP instance itself and not the SSRC. 5. The code did not properly handle explicitly unbundling an RTP instance from its parent. This now works as expected. ASTERISK-27143 Change-Id: Ibd91362f0e4990b6129638e712bc8adf0899fd45
This commit is contained in:
@@ -134,6 +134,7 @@ struct ast_bridge_video_mode {
|
||||
struct ast_bridge_video_single_src_data single_src_data;
|
||||
struct ast_bridge_video_talker_src_data talker_src_data;
|
||||
} mode_data;
|
||||
unsigned int video_update_discard;
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -902,6 +903,14 @@ void ast_bridge_set_talker_src_video_mode(struct ast_bridge *bridge);
|
||||
*/
|
||||
void ast_bridge_set_sfu_video_mode(struct ast_bridge *bridge);
|
||||
|
||||
/*!
|
||||
* \brief Set the amount of time to discard subsequent video updates after a video update has been sent
|
||||
*
|
||||
* \param bridge Bridge to set the minimum video update wait time on
|
||||
* \param video_update_discard Amount of time after sending a video update that others should be discarded
|
||||
*/
|
||||
void ast_bridge_set_video_update_discard(struct ast_bridge *bridge, unsigned int video_update_discard);
|
||||
|
||||
/*!
|
||||
* \brief Update information about talker energy for talker src video mode.
|
||||
*/
|
||||
|
@@ -137,6 +137,8 @@ enum {
|
||||
AST_FRFLAG_HAS_TIMING_INFO = (1 << 0),
|
||||
/*! This frame has been requeued */
|
||||
AST_FRFLAG_REQUEUED = (1 << 1),
|
||||
/*! This frame contains a valid sequence number */
|
||||
AST_FRFLAG_HAS_SEQUENCE_NUMBER = (1 << 2),
|
||||
};
|
||||
|
||||
struct ast_frame_subclass {
|
||||
|
Reference in New Issue
Block a user