]> git.ipfire.org Git - thirdparty/asterisk.git/commit
asterisk: Audit locking of channel when manipulating flags.
authorJoshua Colp <jcolp@digium.com>
Sat, 13 May 2017 16:40:00 +0000 (16:40 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 16 May 2017 14:26:40 +0000 (09:26 -0500)
commitede77acaaf31ad5e7e414e4aea0be52a589d00ca
treec5958435eb00bd9f7c125281cb5651744c935b51
parentbf19c0e5965927251e81a6df734c7124ba292004
asterisk: Audit locking of channel when manipulating flags.

When manipulating flags on a channel the channel has to be
locked to guarantee that nothing else is also manipulating
the flags. This change introduces locking where necessary to
guarantee this. It also adds helper functions that manipulate
channel flags and lock to reduce repeated code.

ASTERISK-26789

Change-Id: I489280662dba0f4c50981bfc5b5a7073fef2db10
15 files changed:
apps/app_chanspy.c
apps/app_dial.c
apps/app_disa.c
apps/app_dumpchan.c
apps/app_externalivr.c
include/asterisk/channel.h
main/autoservice.c
main/bridge_after.c
main/bridge_channel.c
main/channel.c
main/file.c
main/manager.c
main/pbx.c
res/res_agi.c
res/res_musiconhold.c