mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
bridge_softmix: Use MSID:LABEL metadata as the cloned stream's appendix
To avoid the stream name collide if there're more than one video track in one client. If client has multi video tracks, the name of ast_stream which represents each video track may be the same. Use the MSID:LABEL here because it's identifiable. ASTERISK-28196 #close Reported-by: xiemchen Change-Id: Ib62b2886e8d3a30e481d94616b0ceaeab68a870b
This commit is contained in:
committed by
Joshua C. Colp
parent
6f5bc854ab
commit
a526676836
@@ -1157,7 +1157,9 @@ static void add_msid_to_stream(struct ast_sip_session *session,
|
||||
}
|
||||
|
||||
if (ast_strlen_zero(session_media->label)) {
|
||||
ast_uuid_generate_str(session_media->label, sizeof(session_media->label));
|
||||
ast_uuid_generate_str(session_media->label, sizeof(session_media->label));
|
||||
/* add for stream identification to replace stream_name */
|
||||
ast_stream_set_metadata(stream, "MSID:LABEL", session_media->label);
|
||||
}
|
||||
|
||||
snprintf(msid, sizeof(msid), "%s %s", session_media->mslabel, session_media->label);
|
||||
|
Reference in New Issue
Block a user