[asterisk-bugs] [Asterisk 0012773]: [patch] Agent doesn't propagate device state changes from underlying device.

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jul 4 05:56:16 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12773 
====================================================================== 
Reported By:                davidw
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   12773
Category:                   Channels/chan_agent
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.20.1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-02-2008 11:30 CDT
Last Modified:              07-04-2008 05:56 CDT
====================================================================== 
Summary:                    [patch] Agent doesn't propagate device state changes
from underlying device.
Description: 
Given a SIP phone logged in with AgentLogin, and monitored with qualify, if
you remove the power on the phone (or, presumably, unplug it from the
network) Asterisk detects that the phone has become unavailable, but the
agent continues to receive calls, resulting in callers going into a black
hole.

Ideally, I believe that the agent should detect the state change on the
underlying device and change its own state to logged off, and therefore
generate a state change to CHANUNVAIL.  This would result in correct
hinting for the agent's state.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0012771 Bogus <member> is still 'Not in U...
====================================================================== 

---------------------------------------------------------------------- 
 davidw - 07-04-08 05:56  
---------------------------------------------------------------------- 
It looks like we are having a problem with the status not resetting when
the agent logs out, at least when they do it by hanging up.

1001 (Xxxx Xxxxxx) not logged in (musiconhold is 'default')

   Members: I> 
      Anonymous (Not in use) has taken 5 calls (last was 62223 secs ago)

    -= Registered Asterisk Dial Plan Hints =-
              Agent1001 at internal : Agent/1001 State:Idle 
          Watchers 1
                   6102 at default : SIP/yyyyyyyyyyyyy State:Idle 
          Watchers 1

6102 was the last agent in this case. Making 6102 unavailable doesn't make
the agent unavailable, so it is presumably using information cached from
when the agent was logged in.

The hint isn't, currently at least, critical to the application; it was
just something I did to monitor what was going on. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-04-08 05:56  davidw         Note Added: 0089730                          
======================================================================




More information about the asterisk-bugs mailing list