ast_device_state() gets called in two different ways. The first way is when
authorRussell Bryant <russell@russellbryant.com>
Sat, 26 Jul 2008 15:15:14 +0000 (15:15 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 26 Jul 2008 15:15:14 +0000 (15:15 +0000)
called from elsewhere in Asterisk to find the current state of a device.  In
that case, we want to use the cached value if it exists.  The other way is when
processing a device state change.  In that case, we do not want to check the
cache because returning the last known state is counter productive.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@133945 65c4cc65-6c06-0410-ace0-fbb531ad65f3


No differences found