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)
commitac79d99fa66ed75baaa3076b6e34defc1562d729
tree28d3fa92bf2e97e897ae6b0cecbb93e8696d6489
parentc978cc1e2646874c91ad721ad6f989f2af7560da
ast_device_state() gets called in two different ways.  The first way is when
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
main/devicestate.c