[asterisk-bugs] [Asterisk 0013238]: False state in core show hints
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Jan 20 12:27:56 CST 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13238
======================================================================
Reported By: kowalma
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 13238
Category: Channels/chan_sip/Subscriptions
Reproducibility: random
Severity: minor
Priority: normal
Status: feedback
Asterisk Version: 1.6.0-beta9
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2008-08-05 07:45 CDT
Last Modified: 2009-01-20 12:27 CST
======================================================================
Summary: False state in core show hints
Description:
core show hint shows false value of dev state:
asterisk-IBM*CLI> core show hint 1231
1231 at hints : SIP/1231
State:InUse Watchers 0
1 hint matching extension 1231
asterisk-IBM:/usr/src# rasterisk -x "core show channels" | grep 1231
asterisk-IBM:/usr/src#
asterisk-IBM:/usr/src# rasterisk -x "sip show channels" | grep 1231
SIP/1231 is asterisk 1.4.19, asterisk IBM (where I do core show hints) is
1.6.beta9
Restarting asterisk on 1231 does not solve the problem.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0013935 Calls are not beeing disconnected
======================================================================
----------------------------------------------------------------------
(0098207) emaistro (reporter) - 2009-01-20 12:27
http://bugs.digium.com/view.php?id=13238#c98207
----------------------------------------------------------------------
I was able to reproduce the same bug in asterisk 1.6.0.1:
- core show hints
101 at hints : SIP/101&IAX2/101 State:InUse
Watchers 1
- sip show inuse
101 -1/0/0 999
- core show channels
Channel Location State Application(Data)
0 active channels
0 active calls
3 calls processed
Here is how i was able to reliably reproduce it in 5 easy steps:
I created 3 extensions (101, 102 and 300)
1) At asterisk startup everything is fine:
- sip show inuse
101 0/0/0 999
300 0/0/0 999
102 0/0/0 999
- core show hints
102 at hints : SIP/102&IAX2/102 State:Idle
Watchers 0
101 at hints : SIP/101&IAX2/101 State:Idle
Watchers 1
300 at hints : SIP/300&IAX2/300 State:Idle
Watchers 0
2) 102 call 101 and 101 answer the call, everything is still working as
expected
- sip show inuse
101 1/0/0 999
300 0/0/0 999
102 1/0/0 999
- core show hints
102 at hints : SIP/102&IAX2/102 State:InUse
Watchers 0
101 at hints : SIP/101&IAX2/101 State:InUse
Watchers 1
300 at hints : SIP/300&IAX2/300 State:Idle
Watchers 0
3) while call between 101 and 102 is still active, 300 place a new call to
101.
- sip show inuse
101 2/1/0 999
300 1/0/0 999
102 1/0/0 999
- core show hints
102 at hints : SIP/102&IAX2/102 State:InUse
Watchers 0
101 at hints : SIP/101&IAX2/101 State:InUse&Ringing
Watchers 1
300 at hints : SIP/300&IAX2/300 State:InUse
Watchers 0
4) While call between 101 and 102 is still active and before 101 answer
call from 300, 300 cancel call.
- sip show inuse
101 0/0/0 999
300 0/0/0 999
102 1/0/0 999
- core show hints
102 at hints : SIP/102&IAX2/102 State:InUse
Watchers 0
101 at hints : SIP/101&IAX2/101 State:Idle
Watchers 1
300 at hints : SIP/300&IAX2/300 State:Idle
Watchers 0
5) 101 hangup call. No more active channels.
- sip show inuse
101 -1/0/0 999
300 0/0/0 999
102 0/0/0 999
- core show hints
102 at hints : SIP/102&IAX2/102 State:Idle
Watchers 0
101 at hints : SIP/101&IAX2/101 State:InUse
Watchers 1
300 at hints : SIP/300&IAX2/300 State:Idle
Watchers 0
In sip.conf i've got:
allowsubscribe=yes
subscribecontext = hints
notifyringing = yes
notifyhold = yes
callcounter = yes
counteronpeer = yes
Issue History
Date Modified Username Field Change
======================================================================
2009-01-20 12:27 emaistro Note Added: 0098207
======================================================================
More information about the asterisk-bugs
mailing list