]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis: Only place stasis created and dialed channels into dial bridge.
authoragupta <abhay@avissol.com>
Tue, 30 Apr 2019 14:21:46 +0000 (19:51 +0530)
committerJoshua Colp <jcolp@digium.com>
Thu, 2 May 2019 15:44:07 +0000 (09:44 -0600)
commit71040078a385da7353ea7ccb7e299fbba7df66de
tree1865099fa8ed1fd7b9cfded5c414c3e1999b008a
parent45a9ff82860a323f771f1ad5bdd051e04605d7a5
stasis: Only place stasis created and dialed channels into dial bridge.

The dial bridge is meant to hold channels which have been created
and dialed in stasis. It handles the frames coming from them and raises
the appropriate events.

It was possible for the code to mistakenly place calls which came
from the dialplan into the dial bridge if they were not in an
answered state. These channels are not outgoing channels and
should not be placed into the dial bridge.

The code now checks to ensure that only stasis created channels are
placed into the dial bridge by checking that a PBX does not exist
on the channel.

ASTERISK-27756

Change-Id: Ideee69ff06c9a0b31f7ed61165f5c055f51d21b6
res/stasis/control.c