Summary:ASTERISK-04903: Agent still logedin when direct extension UNREACHABLE.
Reporter:Vitaly Apolonsky (apollo)Labels:
Date Opened:2005-08-25 15:15:03Date Closed:2011-06-07 14:10:33
Versions:Frequency of
Description:When using AgentLogin, the agent remains active (logedin and accepts calls) even if the direct extension UNREACHABLE.
In this condition calls send to this Agent and calling hears silence.
It is necessary to make possible automatically to logoff the agent if the direct extension UNREACHABLE.
Comments:By: Michael Jerris (mikej) 2005-08-25 15:37:47

This is already possible with extension logic.

By: Michael Jerris (mikej) 2005-08-25 15:39:03


By: Michael Jerris (mikej) 2005-08-25 15:42:47

and from the sample agent confs:

  12: [agents]
  13: ;
  14: ; Define autologoff times if appropriate.  This is how long
  15: ; the phone has to ring with no answer before the agent is
  16: ; automatically logged off (in seconds)
  17: ;
  18: ;autologoff=15

By: Vitaly Apolonsky (apollo) 2005-08-29 02:53:46

This config string useless if to use with AgentLogin, because Agent answers automatically. The same concerning an example.

I shall try to describe problem.

From a workstation on which X-Lite running, Agent make Login (using AgentLogin), I put several calls in queue, and after some of them have been answered by the Agent, I disconnect Ethernet from a network card on the workstation on which X-Lite running. On asterisk sip show peers command, shows that X-Lite with which the agent has come is UNREACHABLE, but show queue command shows that Agent still logged in.

In this condition rest of calls in queue and all new calls will be answered by Agent, but really Agent not receive them (because our workstation disconnected from network), and calling will hear silence.

So this is different from using autologoff=15 and AgentCallbackLogin.

By: Vitaly Apolonsky (apollo) 2005-08-29 03:01:16

And this is not feature request, this is really big problem when using Agents in different places with different Internet connection. We loosing many calls until direct extension UNREACHABLE, but Agent still logged in.

By: Michael Jerris (mikej) 2005-08-29 06:12:10

Can you provide a patch to fix this issue?

By: Kevin P. Fleming (kpfleming) 2005-08-29 15:20:31

You will have to use 'rtptimeout' so that chan_sip will notice that the open channel has gone away; the reachability status of the peer makes no difference, because calls are not being placed to the peer, the channel is already open.