mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merge "res_pjsip_session: Don't add declined stream if one does not exist."
This commit is contained in:
@@ -1572,6 +1572,11 @@ int ast_sip_session_refresh(struct ast_sip_session *session,
|
|||||||
|
|
||||||
/* No need to do anything with stream if it's media state is removed */
|
/* No need to do anything with stream if it's media state is removed */
|
||||||
if (ast_stream_get_state(stream) == AST_STREAM_STATE_REMOVED) {
|
if (ast_stream_get_state(stream) == AST_STREAM_STATE_REMOVED) {
|
||||||
|
/* If there is no existing stream we can just not have this stream in the topology at all. */
|
||||||
|
if (!existing_stream) {
|
||||||
|
ast_stream_topology_del_stream(media_state->topology, index);
|
||||||
|
index -= 1;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user