[asterisk-bugs] [Asterisk 0016468]: [patch] [regression] Custom devsate set to INUSE but shows as UNAVAILABLE when accessing through the dialplan

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jan 26 16:21:57 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16468 
====================================================================== 
Reported By:                millsu2
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   16468
Category:                   Functions/func_devstate
Reproducibility:            random
Severity:                   minor
Priority:                   normal
Status:                     feedback
Target Version:             1.6.1.14
Asterisk Version:           SVN 
JIRA:                       SWP-582 
Regression:                 Yes 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-12-18 16:02 CST
Last Modified:              2010-01-26 16:21 CST
====================================================================== 
Summary:                    [patch] [regression] Custom devsate set to INUSE but
shows as UNAVAILABLE when accessing through the dialplan
Description: 
I set a custom device state to "INUSE" using
Set(DEVICE_STATE(Custom:device)=INUSE). Through "database show" or 
"devstate list" the state is listed as "INUSE" as it should, but when
getting the state in the dialplan using ${DEVICE_STATE(Custom:device)} it
returns "UNAVAILABLE". If I do "devstate change Custom:device INUSE" after
this happens then it works properly.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0016140 hint not updated correctly on outgoing ...
====================================================================== 

---------------------------------------------------------------------- 
 (0117215) millsu2 (reporter) - 2010-01-26 16:21
 https://issues.asterisk.org/view.php?id=16468#c117215 
---------------------------------------------------------------------- 
The dial plan code should now be attached to this issue.

I use the custom device state to tell whether an agent is logged in or not
and for the Busy Lamp Field on the agents phone. I do see in the logs that
the state is set correctly when the agent logs in, then sometime during the
day it changes so when the agent tries to log out my dial plan thinks they
are trying to log in because of the incorrect device state. The BLF is also
incorrect at that time. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-26 16:21 millsu2        Note Added: 0117215                          
======================================================================




More information about the asterisk-bugs mailing list