]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
bridge_softmix: Suppress error on topology change failure
authorGeorge Joseph <gjoseph@digium.com>
Wed, 8 Sep 2021 12:52:43 +0000 (06:52 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 8 Sep 2021 12:52:43 +0000 (06:52 -0600)
There are conditions under which a failure to change topology
is expected so there's no need to print an ERROR message.

ASTERISK-29618
Reported by: Alexander

Change-Id: Idc168b8588e018bf3a23769f08c4ad646086d481

bridges/bridge_softmix.c

index d51a55f7d1f59ac5bf6ed7fe4558df80c0cd1d01..c7b1d6c8ba4f2bca3dd0a78013a12020504d4187 100644 (file)
@@ -666,7 +666,8 @@ static void sfu_topologies_on_join(struct ast_bridge *bridge,
        ast_trace(-1, "%s: Requesting topology change.\n", ast_channel_name(joiner->chan));
        res = ast_channel_request_stream_topology_change(joiner->chan, sc->topology, NULL);
        if (res) {
-               SCOPE_EXIT_LOG_RTN(LOG_ERROR, "%s: Couldn't request topology change\n", ast_channel_name(joiner->chan));
+               /* There are conditions under which this is expected so no need to log an ERROR. */
+               SCOPE_EXIT_RTN("%s: Couldn't request topology change\n", ast_channel_name(joiner->chan));
        }
 
        AST_LIST_TRAVERSE(participants, participant, entry) {