[asterisk-bugs] [Asterisk 0012672]: Device State stay stuck to "inuse" causing agent not to receive anymore call

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jun 4 07:25:03 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12672 
====================================================================== 
Reported By:                dimitripietro
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12672
Category:                   Channels/chan_sip/General
Reproducibility:            sometimes
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0 
SVN Revision (number only!): 116139 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-16-2008 21:49 CDT
Last Modified:              06-04-2008 07:25 CDT
====================================================================== 
Summary:                    Device State stay stuck to "inuse" causing agent not
to receive anymore call
Description: 
Sometime during the day, I have some SIP device state that stay stuck to
"inuse" causing asterisk not to send anymore call to the agent using this
SIP Phone (Polycom 2.2.084). It seem that the device state stay "inuse"
only for channel being part of one of my queue (agent) and not to regular
extension (administration).

I'm using :
- AddQueueMember
- Local channel/n as member with a stateinterface (SIP/XXX)
- ringinuse=no

In attachement, a copy of my queues.conf and my login dialplan.

PS : I had the same prob with beta 8.
====================================================================== 

---------------------------------------------------------------------- 
 davidw - 06-04-08 07:25  
---------------------------------------------------------------------- 
There seems to be a general problem that Asterisk can think that a call is
up when the phone doesn't think so, or is even unplugged or powered down. 
If you have inuse counts for presence, or because the phone is a direct
member of a queue, the inuse count won't get decremented.  I think this is
particularly true when Asterisk is one side of the call (AgentLogin and
MusicOnHold, in our cases) as, with a human as the other party, they can
clear the call from the other end.  Our problems have happened when a phone
gets powered down overnight whilst still logged in as an agent, although it
can also happen if you do that whilst on MusicOnHold.

One could argue that a qualify failure should bring down all calls, but
there are cases where this might bring down an external bridge which was
otherwise working quite happily.

Empirically, one can reset the inuse count by doing a SIP reload, but the
fact that you can do that is itself a bug!

Note, if you have an agent logged in with AgentLogin, you do not need to
have usage limits on the actual phone.  If you are getting the "still 'Not
in Use'...see upgrade.txt" message, that is nothing to do with the SIP
phone, but is actually a race condition in the handling of the agent.  See
http://bugs.digium.com/view.php?id=12771. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-04-08 07:25  davidw         Note Added: 0087778                          
======================================================================




More information about the asterisk-bugs mailing list