[asterisk-bugs] [Asterisk 0014413]: state of non existent extensions should not be "Idle"

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 5 14:02:19 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14413 
====================================================================== 
Reported By:                pj
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14413
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 173311 
Request Review:              
====================================================================== 
Date Submitted:             2009-02-05 10:26 CST
Last Modified:              2009-02-05 14:02 CST
====================================================================== 
Summary:                    state of non existent extensions should not be
"Idle"
Description: 
If user subscribes to extension, that doesn't exist at all in sip.conf, 
asterisk should not report state of this extension as 'idle' as it
currently does, but instead, 'unknown' state we be more apropriate.
I'm using pattern match feature for hints definition in dialplan:

context linestates {
        hint(SIP/${EXTEN}) _ZXX! => NoOP;
}


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

---------------------------------------------------------------------- 
 (0099535) pj (reporter) - 2009-02-05 14:02
 http://bugs.digium.com/view.php?id=14413#c99535 
---------------------------------------------------------------------- 
hints are working fine in this way (my previous output was from time, when
nobody had subscribed), so I'm sending again dialplan show and core show
hints...


[ Context 'linestates' created by 'pbx_ael' ]
  '322' =>          hint: SIP/322                                
[pbx_ael]
  '324' =>          hint: SIP/324                                
[pbx_ael]
  '324p' =>         hint: SIP/324p                               
[pbx_ael]
  '408' =>          hint: SIP/408                                
[pbx_ael]
  '455' =>          hint: SIP/455                                
[pbx_ael]
  '726' =>          hint: SIP/726                                
[pbx_ael]
  '743' =>          hint: SIP/743                                
[pbx_ael]
  '888' =>          hint: SIP/888                                
[pbx_ael]
  '_ZXX!' =>        hint: SIP/${EXTEN}                           
[pbx_ael]
                    1. NoOP()                                    
[pbx_ael]


    -= Registered Asterisk Dial Plan Hints =-
                    888 at linestates          : SIP/888              
State:Idle            Watchers  1
                    743 at linestates          : SIP/743              
State:Unavailable     Watchers  1
                    726 at linestates          : SIP/726              
State:Idle            Watchers  1
                    455 at linestates          : SIP/455              
State:Unavailable     Watchers  1
                    408 at linestates          : SIP/408              
State:Idle            Watchers  1
                   324p at linestates          : SIP/324p             
State:Idle            Watchers  1
                    324 at linestates          : SIP/324              
State:Idle            Watchers  1
                    322 at linestates          : SIP/322              
State:Unavailable     Watchers  1
                  _ZXX!@linestates          : SIP/${EXTEN}         
State:Idle            Watchers  0
----------------
- 9 hints registered 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-05 14:02 pj             Note Added: 0099535                          
======================================================================




More information about the asterisk-bugs mailing list