ast_device_state() gets called in two different ways. The first way is when
commitdfedfa48d6a3fb16551e1472376c7413f8a85d6a
authorrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Sat, 26 Jul 2008 15:15:14 +0000 (26 15:15 +0000)
committerrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Sat, 26 Jul 2008 15:15:14 +0000 (26 15:15 +0000)
tree28d3fa92bf2e97e897ae6b0cecbb93e8696d6489
parent3c3994fc0f0439a1419ef89c253a29943bc10d3e
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: http://svn.digium.com/svn/asterisk/trunk@133945 614ede4d-c843-0410-af14-a771ab80d22e
main/devicestate.c