[asterisk-bugs] [Asterisk 0018018]: [patch] Hints for non-existent devices are in an Idle state

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 21 03:31:01 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18018 
====================================================================== 
Reported By:                ebroad
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18018
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                       SWP-2283 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 287310 
Request Review:              
====================================================================== 
Date Submitted:             2010-09-20 09:37 CDT
Last Modified:              2010-10-21 03:31 CDT
====================================================================== 
Summary:                    [patch] Hints for non-existent devices are in an
Idle state
Description: 
bhn-pbx01*CLI> core show hint 900
900 at broadhn-internal    : SIP/foo             State:Idle           
Watchers  0
1 hint matching extension 900


foo is not a valid SIP device:

bhn-pbx01*CLI> sip show peer foo
Peer foo not found.

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

---------------------------------------------------------------------- 
 (0128265) schmidts (manager) - 2010-10-21 03:31
 https://issues.asterisk.org/view.php?id=18018#c128265 
---------------------------------------------------------------------- 
after checking devicestate.c again i think this would work fine, cause if
there is no tech with a linked devicestate like SIP it would go over the
channel list to find it. This is exactly what happens now if a hint for a
non existing peer is checked and return UNKNOWN. So this would cause also a
locking situation and its slow and needless ;)

the problem i see is in app_page (page_exec) cause changing form unknown
to unavailable will not page this device anymore.
Also in func_devstate the return value would be changed cause of this so
it could break some dialplan logic :( 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-21 03:31 schmidts       Note Added: 0128265                          
======================================================================




More information about the asterisk-bugs mailing list