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:25:23 +0000 (14:25 +0000)
commit5a7af00e80b9f360a11fcbbc6c6b6dfd2ee478a6
tree6f5b088ad13c1451d1e8421e57b9cd1a9a2d3434
parentce4d8dac91631599452a9c7aa9c81001704afb62
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