bridge_simple: Improve renegotiation success rate.
authorJoshua Colp <jcolp@digium.com>
Thu, 12 Oct 2017 17:03:45 +0000 (17:03 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 13 Oct 2017 22:24:08 +0000 (17:24 -0500)
commit7d51a79beb903874da97f52a31fabfdd94ac3680
tree78c6baa0ed24138f51321a9b1b6ff42c5be58f1c
parent85bdfe2df717ca21d7c620dea7a3c4362da5ea6a
bridge_simple: Improve renegotiation success rate.

When making channels compatible the bridge_simple module
will renegotiate one to better match the other. Some
endpoints incorrectly terminate the call if this process
fails.

To better handle this scenario the audio streams present
on the new requested topology will include any existing
negotiated formats that happen to exist on the first
valid audio stream. This ensures formats are persent that
are known to be acceptable to the remote endpoint.

ASTERISK-27259

Change-Id: I8fc0cc03e8bcfd0be8302f13b9f32d8268977f43
bridges/bridge_simple.c