[asterisk-bugs] [Asterisk 0013327]: pattern match for a hints always gives state:idle for all extensions

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 11 16:51:39 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13327 
====================================================================== 
Reported By:                pj
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   13327
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 138442 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-08-16 15:43 CDT
Last Modified:              2008-12-11 16:51 CST
====================================================================== 
Summary:                    pattern match for a hints always gives state:idle
for all extensions
Description: 
I'm using this ael syntax for pattern match for hints
        hint(SIP/${EXTEN}) _ZXX => NoOP;
when subscribe to extensions using this pattern match, it gives always
"idle" state for all subscribed extensions, regardless of actual state of
line, it shows always "idle" for unregistered, or even not existent peers!

pattern match for hints feature was added into trunk in rev. 109970
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0007767 [patch] Allow a simple lookup for hint ...
====================================================================== 

---------------------------------------------------------------------- 
 (0096292) pj (reporter) - 2008-12-11 16:51
 http://bugs.digium.com/view.php?id=13327#c96292 
---------------------------------------------------------------------- 
Asterisk SVN-trunk-r163094 
two problems:
- when I try to subscribe to non-existent extension, it allows to
subscribe to this ext. successfully and shows this extension as 'Idle'
- some locks occurs, when I do 'ael reload':


[Dec 11 21:44:14] ERROR[12000]:
/root/src/asterisk163164/include/asterisk/lock.h:1236 _ast_rwlock_rdlock:
pbx.c line 5226 (handle_show_hints): Error obtaining read lock: Resource
temporarily unavailable
[Dec 11 21:44:14] ERROR[12000]:
/root/src/asterisk163164/include/asterisk/lock.h:1105 _ast_rwlock_unlock:
pbx.c line 5248 (handle_show_hints): rwlock '&(&hints)->lock' freed more
times than we've locked!



=== Thread ID: -1217299568 (do_monitor           started at [20719]
chan_sip.c restart_monitor())
=== ---> Lock http://bugs.digium.com/view.php?id=0 (astobj2.c): MUTEX 644
__ao2_callback c 0x83d0928 (1)
        asterisk(ast_bt_get_addresses+0x19) [0x8100319]
        asterisk [0x8082a20]
        asterisk(_ao2_lock+0x4a) [0x80828e3]
        asterisk [0x80844d4]
        asterisk(_ao2_callback+0x56) [0x80848c5]
        /usr/lib/asterisk/modules/chan_sip.so [0xb779f1ea]
        asterisk [0x8177481]
        /lib/i686/libpthread.so.0 [0xb7a31315]
        /lib/i686/libc.so.6(clone+0x5e) [0xb7cabdde] 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-11 16:51 pj             Note Added: 0096292                          
======================================================================




More information about the asterisk-bugs mailing list