[Asterisk-Users] Bug in app_queue/AgentCallbackLogin

Michael Loftis mloftis at wgops.com
Thu Oct 14 16:20:20 MST 2004


Bit of transcript below, relevant portion is this though::

    -- Executing ChanIsAvail("SIP/4111-6358", "Agent/@1") in new stack
Oct 14 16:58:43 NOTICE[101393]: chan_agent.c:549 agent_hangup: Agent 
'Michael Loftis' didn't answer/confirm within 20 seconds (waited 118)


Agent was logged in via AgentCallbackLogin, but ChanIsAvail triggered some 
sort of idle check, and because ethe agent had logged in a couple of 
minutes ago, it returns ChanIsAvail as true, but logs the agent out since 
they 'didn't respond'

I doubt the bug is created/can be created by my dialplan, I dial an exten 
to login using AgentCallbackLogin (8900) then hang up, wait around for a 
bit, then have someone dial into the support queue logic/extension. 
ChanIsAvail is run, my agent is logged out if it's been more than 20 
seconds since I logged in, they're entered into the queue anyway.


pbx0*CLI> show agents
4101         (Tom Connell) not logged in (musiconhold is 'default')
4113         (John Masterson) not logged in (musiconhold is 'default')
4119         (Michael Loftis) available at '4101 at agentlogin' (musiconhold 
is 'default')
    -- Executing Answer("SIP/4111-6358", "") in new stack
    -- Executing SetMusicOnHold("SIP/4111-6358", "default") in new stack
    -- Executing DigitTimeout("SIP/4111-6358", "5") in new stack
    -- Set Digit Timeout to 5
    -- Executing ResponseTimeout("SIP/4111-6358", "5") in new stack
    -- Set Response Timeout to 5
    -- Executing SetCIDName("SIP/4111-6358", "[SQ]Janiel Sanchelli|a") in 
new stack
    -- Executing Macro("SIP/4111-6358", "supportq") in new stack
    -- Executing Macro("SIP/4111-6358", "setafterhours") in new stack
    -- Executing SetVar("SIP/4111-6358", "AFTERHOURS=1") in new stack
    -- Executing GotoIfTime("SIP/4111-6358", "8:00-17:00|mon-fri|*|*?200") 
in new stack
    -- Goto (macro-setafterhours,s,200)
    -- Executing SetVar("SIP/4111-6358", "AFTERHOURS=0") in new stack
    -- Executing ChanIsAvail("SIP/4111-6358", "Agent/@1") in new stack
Oct 14 16:58:43 NOTICE[101393]: chan_agent.c:549 agent_hangup: Agent 
'Michael Loftis' didn't answer/confirm within 20 seconds (waited 118)
    -- Executing Goto("SIP/4111-6358", "s|300") in new stack
    -- Goto (macro-supportq,s,300)
    -- Executing Queue("SIP/4111-6358", "supportq") in new stack
    -- Started music on hold, class 'default', on SIP/4111-6358
    -- Stopped music on hold on SIP/4111-6358
    -- Playing 'queue-youarenext' (language 'en')
    -- Told SIP/4111-6358 in supportq their queue position (which was 1)
    -- Playing 'queue-thankyou' (language 'en')
    -- Started music on hold, class 'default', on SIP/4111-6358
Oct 14 16:58:50 NOTICE[101393]: app_queue.c:749 wait_for_answer: No one is 
answering queue 'supportq'
    -- Stopped music on hold on SIP/4111-6358
    -- User disconnected when they almost made it
  == Spawn extension (macro-supportq, s, 300) exited non-zero on 
'SIP/4111-6358' in macro 'supportq'
  == Spawn extension (from-sip, 8901, 6) exited non-zero on 'SIP/4111-6358'


--
GPG/PGP --> 0xE736BD7E 5144 6A2D 977A 6651 DFBE 1462 E351 88B9 E736 BD7E 



More information about the asterisk-users mailing list