]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core_unreal: Flip stream direction of second channel.
authorMaximilian Fridrich <m.fridrich@commend.com>
Fri, 29 Apr 2022 08:47:38 +0000 (10:47 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 5 May 2022 13:16:30 +0000 (08:16 -0500)
commit4fec26923e474d0efc715d2726f1165128cb0ec6
treeb7e877e4fd1ab27b2eaff36451adca933be0a8e2
parent0c3f7c98e50b5833c5b404d36ba99f49098099dc
core_unreal: Flip stream direction of second channel.

When a new unreal (local) channel is created, a second (;2) channel is
created as a counterpart which clones the topology of the first
channel. This creates issues when an outgoing stream is sendonly or
recvonly as the stream state of the inbound channel will be the same
as the stream state of the outbound channel.

Now the stream state is flipped for the streams of the 2nd channel in
ast_unreal_new_channels if the outgoing stream topology is recvonly or
sendonly.

ASTERISK-29655
Reported by: Michael Auracher

ASTERISK-29638
Reported by: Michael Auracher

Change-Id: I0cea29635bb20b7bf7fd0fb95498cd44dab98fbf
main/core_unreal.c