[asterisk-bugs] [Asterisk 0014461]: [patch] func_devstate not updating Custom hints, and not in sync with ASTDB

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Feb 13 04:21:49 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14461 
====================================================================== 
Reported By:                alecdavis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14461
Category:                   Functions/func_devstate
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 174327 
Request Review:              
====================================================================== 
Date Submitted:             2009-02-11 22:53 CST
Last Modified:              2009-02-13 04:21 CST
====================================================================== 
Summary:                    [patch] func_devstate not updating Custom hints, and
not in sync with ASTDB
Description: 
astdb is always being updated, but sometimes hints are not.
It's not consistant, as I type this bug, it will come right and work
correctly for a while, then go wrong.

astrid*CLI> database show CustomDevstate
...
/CustomDevstate/q8501_a8512                       : INUSE
...

astrid*CLI> core show hints
            8501GXP0001 at BLF_Group_1         : Custom:q8501_a8512   
State:Idle            Watchers  1

further manipulation from the command line.

astrid*CLI> devstate change Custom:q8501_a8512 NOT_INUSE
Changing q8501_a8512 to NOT_INUSE
  == Extension Changed 8501GXP0001[BLF_Group_1] new state InUse for Notify
User GXP0001

astrid*CLI> devstate change Custom:q8501_a8512 INUSE
Changing q8501_a8512 to INUSE
  == Extension Changed 8501GXP0001[BLF_Group_1] new state Idle for Notify
User GXP0001

But the weirdest thing, the BLF lamp on the phone comes right after approx
35 seconds, but still the Hint is incorrect.



====================================================================== 

---------------------------------------------------------------------- 
 (0100087) alecdavis (reporter) - 2009-02-13 04:21
 http://bugs.digium.com/view.php?id=14461#c100087 
---------------------------------------------------------------------- 
and for the record.
without the workaround. only 1 minute after asterisk has started, and only
2 BLF key presses is it wrong.

[Feb 13 23:18:36] NOTICE[26602]: devicestate.c:346 _ast_device_state:
provider for "Custom" - number:=q8501_a8520 state=1
device=Custom:q8501_a8520
[Feb 13 23:18:36] NOTICE[26602]: devicestate.c:346 _ast_device_state:
provider for "Custom" - number:=q8501_a8520 state=1
device=Custom:q8501_a8520
[Feb 13 23:18:40] NOTICE[26629]: func_devstate.c:131 devstate_write:
---------------------------------------------------------------
[Feb 13 23:18:40] NOTICE[26629]: func_devstate.c:132 devstate_write:
DEVICE_STATE function state=2 for device q8501_a8520
[Feb 13 23:18:40] NOTICE[26629]: devicestate.c:584
ast_devstate_changed_literal: state=2 for device Custom:q8501_a8520
[Feb 13 23:18:40] NOTICE[26600]: devicestate.c:346 _ast_device_state:
provider for "Custom" - number:=q8501_a8520 state=2
device=Custom:q8501_a8520
[Feb 13 23:18:40] NOTICE[26597]: devicestate.c:750 process_collection:
cache state=2 for device Custom:q8501_a8520
[Feb 13 23:18:40] NOTICE[26600]: devicestate.c:324 _ast_device_state:
Cached state=2 for device Custom:q8501_a8520
[Feb 13 23:18:40] NOTICE[26629]: devicestate.c:546 devstate_event: cache
state=2 for device Custom:q8501_a8520
[Feb 13 23:18:47] NOTICE[26630]: func_devstate.c:131 devstate_write:
---------------------------------------------------------------
[Feb 13 23:18:47] NOTICE[26630]: func_devstate.c:132 devstate_write:
DEVICE_STATE function state=1 for device q8501_a8520
[Feb 13 23:18:47] NOTICE[26630]: devicestate.c:584
ast_devstate_changed_literal: state=1 for device Custom:q8501_a8520
[Feb 13 23:18:47] NOTICE[26630]: devicestate.c:546 devstate_event: cache
state=1 for device Custom:q8501_a8520
[Feb 13 23:18:47] NOTICE[26600]: devicestate.c:324 _ast_device_state:
Cached state=2 for device Custom:q8501_a8520
[Feb 13 23:18:47] NOTICE[26597]: devicestate.c:750 process_collection:
cache state=1 for device Custom:q8501_a8520
[Feb 13 23:19:21] NOTICE[26602]: devicestate.c:324 _ast_device_state:
Cached state=1 for device Custom:q8501_a8520
[Feb 13 23:19:21] NOTICE[26602]: devicestate.c:324 _ast_device_state:
Cached state=1 for device Custom:q8501_a8520
[Feb 13 23:20:06] NOTICE[26602]: devicestate.c:324 _ast_device_state:
Cached state=1 for device Custom:q8501_a8520
[Feb 13 23:20:06] NOTICE[26602]: devicestate.c:324 _ast_device_state:
Cached state=1 for device Custom:q8501_a8520
astrid*CLI> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-13 04:21 alecdavis      Note Added: 0100087                          
======================================================================




More information about the asterisk-bugs mailing list