bridge_softmix: Use removed stream spots when renegotiating.
authorJoshua Colp <jcolp@digium.com>
Sun, 16 Jul 2017 17:31:35 +0000 (17:31 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 16 Jul 2017 17:31:35 +0000 (17:31 +0000)
commitf48695ce5bde836691e1b46350c22f1de21de5d9
treeff79a33abb1d35c0bfcc4102bc9c626f2ecb01ce
parent3fd1d520f73a279b78e3bcfadc3ab7f829ff44c0
bridge_softmix: Use removed stream spots when renegotiating.

Streams are never truly removed in SDP, they still occupy
a location within the SDP. This location can be reused by
another stream if it so chooses.

This change takes advantage of this such that if a new stream
is needing to be added for a new participant any removed streams
are instead replaced first. This reduces the size of the SDP
and the number of streams.

ASTERISK-27134

Change-Id: I95cdcfd55cf47e02ea52abb5d94008db3fb68b1d
bridges/bridge_softmix.c