Summary: | ASTERISK-13230: autologoff does not work | ||
Reporter: | evandro (evandro) | Labels: | |
Date Opened: | 2008-12-16 06:32:41.000-0600 | Date Closed: | 2010-01-05 16:59:10.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_agent |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) autologoff.diff | |
Description: | setting 'autologoff=X' in agents.conf does not work. i'm using sip member logged as Agent/${CALLERID(num)} through AgentLogin made by AGI. there's something that i forget? any help? ****** ADDITIONAL INFORMATION ****** my conf files: ********agents.conf: ackcall=always endcall=yes autologoff=15 agent => 3400,,3400 agent => 3401,,3401 **********queues.conf [1] announce-frequency=90 announce-holdtime=once music=default joinempty=yes strategy=leastrecent weight=10 servicelevel=40 setinterfacevar=yes ringinuse=no queue-youarenext=queue-youarenext eventmemberstatus=yes eventwhencalled=yes autofill=yes timeout=15 ************sip.conf [3400] callerid="3400"<3400> context=Saida type=peer secret=3400 host=dynamic permit=0.0.0.0/0.0.0.0 nat=no call-limit=10 qualify=yes allowtransfer=yes [3401] callerid="3401"<3401> context=Saida type=peer secret=3401 host=dynamic permit=0.0.0.0/0.0.0.0 nat=no call-limit=10 qualify=yes allowtransfer=yes ********* cli output: -- Executing [*9800@Saida:1] DeadAGI("SIP/3400-081ce950", "/dg/intelix/configurador/agi-bin/ligacaoSaida.agi|5") in new stack [Dec 16 10:14:19] WARNING[2244]: res_agi.c:2152 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI -- Launched AGI Script /dg/intelix/configurador/agi-bin/ligacaoSaida.agi -- AGI Script Executing Application: (Addqueuemember) Options: (1|Agent/3400) [Dec 16 10:14:20] NOTICE[2244]: app_queue.c:3619 aqm_exec: Added interface 'Agent/3400' to queue '1' -- AGI Script Executing Application: (Agentlogin) Options: (3400) -- <SIP/3400-081ce950> Playing 'agent-loginok' (language 'pt_BR') -- Started music on hold, class 'default', on SIP/3400-081ce950 == Agent '3400' logged in (format gsm/gsm) Really destroying SIP dialog '38C54A6194FC491681E9E8279F6CDEC80xc0a8001a' Method: REGISTER -- Executing [11@Saida:1] Queue("SIP/3401-081f0be8", "1|tg") in new stack -- Started music on hold, class 'default', on SIP/3401-081f0be8 -- Stopped music on hold on SIP/3400-081ce950 -- agent_call, call to agent '3400' call on 'SIP/3400-081ce950' -- <SIP/3400-081ce950> Playing 'beep' (language 'pt_BR') -- Called Agent/3400 [Dec 16 10:14:44] NOTICE[2194]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3400 Really destroying SIP dialog '2a7122355b3da851MjRjYmU2MzdkZmE2NGQ5MjEwNzQ5YjRjNTFkODNjYWI.' Method: SUBSCRIBE -- Nobody picked up in 15000 ms -- Started music on hold, class 'default', on SIP/3400-081ce950 -- Stopped music on hold on SIP/3401-081f0be8 -- <SIP/3401-081f0be8> Playing 'queue-youarenext' (language 'pt_BR') [Dec 16 10:14:56] WARNING[2247]: channel.c:2557 ast_prod: Prodding channel 'SIP/3401-081f0be8' failed -- Started music on hold, class 'default', on SIP/3401-081f0be8 -- Stopped music on hold on SIP/3400-081ce950 -- agent_call, call to agent '3400' call on 'SIP/3400-081ce950' -- <SIP/3400-081ce950> Playing 'beep' (language 'pt_BR') -- Called Agent/3400 -- Stopped music on hold on SIP/3401-081f0be8 -- Started music on hold, class 'default', on SIP/3400-081ce950 == Spawn extension (Saida, 11, 1) exited non-zero on 'SIP/3401-081f0be8' | ||
Comments: | By: Mark Michelson (mmichelson) 2009-01-06 18:49:08.000-0600 I think the problem is that you have the autologoff set the same as your queue's timeout. Since the queue stops trying to ring the agent once 15 seconds have elapsed, the agent is not automatically logged out. Try setting the autologoff to be something lower, like 14 or 13 and see if it works. By: Joshua C. Colp (jcolp) 2009-01-26 15:40:22.000-0600 evandro: Has putnopvut's suggestion helped at all? By: evandro (evandro) 2009-01-27 05:10:18.000-0600 I changed the autologoff from 15 to 10 seconds, but it yet not works. Is this not because Agentlogin login mode? By: Digium Subversion (svnbot) 2009-04-17 20:27:20 Repository: asterisk Revision: 189203 U branches/1.4/channels/chan_agent.c ------------------------------------------------------------------------ r189203 | dvossel | 2009-04-17 20:27:19 -0500 (Fri, 17 Apr 2009) | 12 lines Fixed autologoff in agents.conf not working when agent logs in via AgentLogin app An agent logs in by calling an extension that calls the AgentLogin app. In agents.conf ackcall=always is set, so when they get a call they have the choice to either acknowledge it or ignore it. autologoff=10 is set as well, so if the agent ignores the call over 10sec one may assume that the agent should be logged out (and in this case hungup on as well), but this was not happening. (closes issue ASTERISK-13230) Reported by: evandro Patches: autologoff.diff uploaded by dvossel (license 671) Review: http://reviewboard.digium.com/r/225/ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=189203 By: Digium Subversion (svnbot) 2009-04-17 20:28:45 Repository: asterisk Revision: 189204 _U trunk/ U trunk/channels/chan_agent.c ------------------------------------------------------------------------ r189204 | dvossel | 2009-04-17 20:28:45 -0500 (Fri, 17 Apr 2009) | 18 lines Merged revisions 189203 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r189203 | dvossel | 2009-04-17 20:27:19 -0500 (Fri, 17 Apr 2009) | 12 lines Fixed autologoff in agents.conf not working when agent logs in via AgentLogin app An agent logs in by calling an extension that calls the AgentLogin app. In agents.conf ackcall=always is set, so when they get a call they have the choice to either acknowledge it or ignore it. autologoff=10 is set as well, so if the agent ignores the call over 10sec one may assume that the agent should be logged out (and in this case hungup on as well), but this was not happening. (closes issue ASTERISK-13230) Reported by: evandro Patches: autologoff.diff uploaded by dvossel (license 671) Review: http://reviewboard.digium.com/r/225/ ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=189204 By: Digium Subversion (svnbot) 2009-04-17 20:37:24 Repository: asterisk Revision: 189205 _U branches/1.6.0/ U branches/1.6.0/channels/chan_agent.c ------------------------------------------------------------------------ r189205 | dvossel | 2009-04-17 20:37:24 -0500 (Fri, 17 Apr 2009) | 25 lines Merged revisions 189204 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r189204 | dvossel | 2009-04-17 20:28:45 -0500 (Fri, 17 Apr 2009) | 18 lines Merged revisions 189203 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r189203 | dvossel | 2009-04-17 20:27:19 -0500 (Fri, 17 Apr 2009) | 12 lines Fixed autologoff in agents.conf not working when agent logs in via AgentLogin app An agent logs in by calling an extension that calls the AgentLogin app. In agents.conf ackcall=always is set, so when they get a call they have the choice to either acknowledge it or ignore it. autologoff=10 is set as well, so if the agent ignores the call over 10sec one may assume that the agent should be logged out (and in this case hungup on as well), but this was not happening. (closes issue ASTERISK-13230) Reported by: evandro Patches: autologoff.diff uploaded by dvossel (license 671) Review: http://reviewboard.digium.com/r/225/ ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=189205 By: Digium Subversion (svnbot) 2009-04-17 20:38:21 Repository: asterisk Revision: 189206 _U branches/1.6.1/ U branches/1.6.1/channels/chan_agent.c ------------------------------------------------------------------------ r189206 | dvossel | 2009-04-17 20:38:21 -0500 (Fri, 17 Apr 2009) | 25 lines Merged revisions 189204 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r189204 | dvossel | 2009-04-17 20:28:45 -0500 (Fri, 17 Apr 2009) | 18 lines Merged revisions 189203 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r189203 | dvossel | 2009-04-17 20:27:19 -0500 (Fri, 17 Apr 2009) | 12 lines Fixed autologoff in agents.conf not working when agent logs in via AgentLogin app An agent logs in by calling an extension that calls the AgentLogin app. In agents.conf ackcall=always is set, so when they get a call they have the choice to either acknowledge it or ignore it. autologoff=10 is set as well, so if the agent ignores the call over 10sec one may assume that the agent should be logged out (and in this case hungup on as well), but this was not happening. (closes issue ASTERISK-13230) Reported by: evandro Patches: autologoff.diff uploaded by dvossel (license 671) Review: http://reviewboard.digium.com/r/225/ ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=189206 By: Digium Subversion (svnbot) 2009-04-17 20:39:14 Repository: asterisk Revision: 189207 _U branches/1.6.2/ U branches/1.6.2/channels/chan_agent.c ------------------------------------------------------------------------ r189207 | dvossel | 2009-04-17 20:39:14 -0500 (Fri, 17 Apr 2009) | 25 lines Merged revisions 189204 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r189204 | dvossel | 2009-04-17 20:28:45 -0500 (Fri, 17 Apr 2009) | 18 lines Merged revisions 189203 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r189203 | dvossel | 2009-04-17 20:27:19 -0500 (Fri, 17 Apr 2009) | 12 lines Fixed autologoff in agents.conf not working when agent logs in via AgentLogin app An agent logs in by calling an extension that calls the AgentLogin app. In agents.conf ackcall=always is set, so when they get a call they have the choice to either acknowledge it or ignore it. autologoff=10 is set as well, so if the agent ignores the call over 10sec one may assume that the agent should be logged out (and in this case hungup on as well), but this was not happening. (closes issue ASTERISK-13230) Reported by: evandro Patches: autologoff.diff uploaded by dvossel (license 671) Review: http://reviewboard.digium.com/r/225/ ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=189207 |