]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core_unreal & app_dial: Flip stream direction of second channel.
authorMaximilian Fridrich <m.fridrich@commend.com>
Wed, 13 Apr 2022 13:12:03 +0000 (15:12 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 26 Apr 2022 15:45:29 +0000 (10:45 -0500)
commit163abe693491f4380fb6ba63db2b55007bb7643b
tree8c5997316c003590595f482c1c6b64ff6dbe938a
parent8edbc3b07b0988a22f0c67471ace1fa6cff9afec
core_unreal & app_dial: Flip stream direction of second channel.

When executing dial, the topology of the inbound channel is cloned and
used for the outbound channel. This creates issues when an incoming
stream is sendonly or recvonly as the stream state of the outbound
channel will be the same as the stream state of the inbound channel.

Now the stream state is flipped for the outgoing stream in
dial_exec_full if the incoming stream topology is recvonly or sendonly.

The same is the case for unreal (local) channels which create a second
(;2) channel as a counterpart which clones the topology of the
first channel. Now the stream state is flipped for the streams of
the 2nd channel in ast_unreal_new_channels if the incoming stream
topology is recvonly or sendonly.

ASTERISK-29655
Reported by: Michael Auracher

ASTERISK-29638
Reported by: Michael Auracher

Change-Id: I294dc834ac9a5f048b101b691669959e9df630e1
apps/app_dial.c
main/core_unreal.c