]> git.ipfire.org Git - thirdparty/asterisk.git/commit
autoservice: Don't start channel autoservice if the thread is a user interface.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 18 Jun 2018 23:04:54 +0000 (18:04 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 19 Jun 2018 20:02:52 +0000 (15:02 -0500)
commit0989b63047369fc93551f8ca96065bcfac118983
tree09d1817fc6e88da6417c531f7761f2c240582954
parentda54605b8a353bb441d7a3e756510344d90fd01b
autoservice: Don't start channel autoservice if the thread is a user interface.

Executing dialplan functions from either AMI or ARI by getting a variable
could place the channel into autoservice.  However, these user interface
threads do not handle the channel's media so we wind up with two threads
attempting to handle the media.

There can be one and only one thread handling a channel's media at a time.
Otherwise, we don't know which thread is going to handle the media frames.

ASTERISK-27625

Change-Id: If2dc94ce15ddabf923ed1e2a65ea0ef56e013e49
include/asterisk/utils.h
main/autoservice.c
main/tcptls.c
main/utils.c