Merged revisions 378322 via svnmerge from
authorAutomerge script <automerge@asterisk.org>
Wed, 2 Jan 2013 18:20:03 +0000 (18:20 +0000)
committerAutomerge script <automerge@asterisk.org>
Wed, 2 Jan 2013 18:20:03 +0000 (18:20 +0000)
commit675914bb1756fada8599600e4544ddc2a8c808b1
tree625c190130f2c5e6d6f1ff684d8ec6f9e73cba94
parent5966364588cfb5e83ac5182469cc3f994cff6143
Merged revisions 378322 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378322 | mjordan | 2013-01-02 12:11:59 -0600 (Wed, 02 Jan 2013) | 33 lines

  Prevent exhaustion of system resources through exploitation of event cache

  Asterisk maintains an internal cache for devices in the event subsystem. The
  device state cache holds the state of each device known to Asterisk, such that
  consumers of device state information can query for the last known state for
  a particular device, even if it is not part of an active call. The concept of
  a device in Asterisk can include entities that do not have a physical
  representation. One way that this occurred was when anonymous calls are allowed
  in Asterisk. A device was automatically created and stored in the cache for
  each anonymous call that occurred; this was possible in the SIP and IAX2
  channel drivers and through channel drivers that utilized the
  res_jabber/res_xmpp resource modules (Gtalk, Jingle, and Motif). These devices
  are never removed from the system, allowing anonymous calls to potentially
  exhaust a system's resources.

  This patch changes the event cache subsystem and device state management to
  no longer cache devices that are not associated with a physical entity.

  (issue ASTERISK-20175)
  Reported by: Russell Bryant, Leif Madsen, Joshua Colp
  Tested by: kmoore
  patches:
    event-cachability-3.diff uploaded by jcolp (license 5000)
  ........

  Merged revisions 378303 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378320 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 378321 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
22 files changed:
apps/app_confbridge.c
apps/app_meetme.c
apps/app_queue.c
apps/confbridge/conf_state_empty.c
channels/chan_agent.c
channels/chan_dahdi.c
channels/chan_iax2.c
channels/chan_local.c
channels/chan_sip.c
channels/chan_skinny.c
funcs/func_devstate.c
include/asterisk/channel.h
include/asterisk/devicestate.h
include/asterisk/event_defs.h
main/ccss.c
main/channel.c
main/channel_internal_api.c
main/devicestate.c
main/event.c
main/features.c
res/res_calendar.c
res/res_jabber.c