]> 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:15:50 +0000 (08:15 -0500)
commit1e6991f95e6a70146a64407ab01bbbe45f93745f
treeaa6b89340bbd877f69b72faffdf48d6e00742ac2
parent085f33b7a363ffaaa749f5380580787895a846fd
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