Static agent logging in TWICE

Hi.

There is a problem I can’t deal with. Once in a while (1-2 times per week) some agents became inaccessible. When one is trying to log in as an agent (with AgentLogin), system says that “that agent is already logged in”. CLI command ‘agent loggoff Agent/N’ doesn’t help, it executes with no errors, but an agent is still online.

Watching logs, I found that last time it happened, an operator somehow managed to register two times in a row.

First session, starts at 13:42:55, ends at 14:34:21:

[Mar 22 13:42:55] VERBOSE[25747] pbx.c: -- Executing [*101@internal:1] AgentLogin("SIP/419-0000139d", "") in new stack [Mar 22 13:42:55] VERBOSE[25747] file.c: -- <SIP/419-0000139d> Playing 'agent-user.ulaw' ... [Mar 22 13:42:58] VERBOSE[25747] file.c: -- <SIP/419-0000139d> Playing 'agent-loginok.ulaw' [Mar 22 13:42:59] VERBOSE[25747] res_musiconhold.c: -- Started music on hold, class 'default', on SIP/419-0000139d [Mar 22 13:42:59] VERBOSE[25747] chan_agent.c: == Agent '26' logged in (format ulaw/ulaw) [Mar 22 14:34:21] VERBOSE[25747] chan_agent.c: == Agent '26' logged out [Mar 22 14:34:21] VERBOSE[25747] pbx.c: == Spawn extension (internal, *101, 1) exited non-zero on 'SIP/419-0000139d' [Mar 22 14:34:21] VERBOSE[25747] pbx.c: -- Executing [h@internal:1] Verbose("SIP/419-0000139d", "!!!hangup!!!") in new stack

Second session, starts at 14:34:01 (few seconds before previous session ends), ends newer:

[Mar 22 14:34:01] VERBOSE[10070] pbx.c: -- Executing [*101@internal:1] AgentLogin("SIP/419-0000146f", "") in new stack [Mar 22 14:34:01] VERBOSE[10070] file.c: -- <SIP/419-0000146f> Playing 'agent-user.ulaw' ... [Mar 22 14:34:05] VERBOSE[10070] file.c: -- <SIP/419-0000146f> Playing 'agent-loginok.ulaw' [Mar 22 14:34:07] VERBOSE[10070] res_musiconhold.c: -- Started music on hold, class 'default', on SIP/419-0000146f [Mar 22 14:34:07] VERBOSE[10070] chan_agent.c: == Agent '26' logged in (format ulaw/ulaw)

Well, I don’t know how she did it, but how the heck it’s possible?

We tried latest builds of 1.6, 1.8, 10.x - the same thing. Any suggestions?

My configuration:

queues.conf:

[code][general]
persistentmembers = no
autofill = yes
monitor-type = MixMonitor

[q01]
musicclass = snd
strategy = rrmemory
ringinuse = no
member => Agent/1
member => Agent/2
member => Agent/3
member => Agent/4
member => Agent/5
member => Agent/6
member => Agent/7
member => Agent/8
member => Agent/9
member => Agent/10
[/code]

agents.conf:

[code]
[general]
multiplelogin=no

[agents]
maxlogintries=5
autologoff=5
autologoffunavail=yes
endcall=yes
enddtmf=*

agent => 1,1,cc
agent => 2,2,cc
agent => 3,3,cc
agent => 4,4,cc
agent => 5,5,cc
agent => 6,6,cc
agent => 7,7,cc
agent => 8,8,cc
agent => 9,9,cc
agent => 10,10,cc[/code]

sip.conf:

[code][general]
context=default
allowguest=no
allowoverlap=no
externip=194.XX.XX.XX
localnet=194.XX.XX.XX/255.255.255.0
udpbindaddr=0.0.0.0
tcpenable=yes
tcpbindaddr=0.0.0.0

srvlookup=no
alwaysauthreject=yes
auth_options_requests=no
t1min=500

template
type=friend
host=dynamic
disallow=all
allow=ulaw
qualify=yes
canreinvite=no
nat=no
session-timers=originate
session-expires=100
session-minse=90
rtptimeout=45

401
username=401
secret=XX
context=internal

402
username=402
secret=XX
context=internal

…and so on…[/code]