I am using AgentCallbacklogin to logon agents. I am trying to avoid agents being logged in more than once in different extensions (is this a bug?) by passing the callerid to the AgentCallbacklogin funtcion as an option. The problem is that by doing this, agents are not asked for an extension and they cannot logoff (by pressing the #). Any ideas how can agents logoff? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050130/7a07eab1/attachment.htm
I have a separate extension set up for logoff that doesn't pass the callerid to AgentCallbacklogin. So my agents dial 301 to log on and 302 to logoff. A lot of the phones (Cisco for example) allow you set up speed dials, so its even easier for an agent to log on and off. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Dan Fernandez Sent: Sunday, January 30, 2005 10:25 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] agent logoff I am using AgentCallbacklogin to logon agents. I am trying to avoid agents being logged in more than once in different extensions (is this a bug?) by passing the callerid to the AgentCallbacklogin function as an option. The problem is that by doing this, agents are not asked for an extension and they cannot logoff (by pressing the #). Any ideas how can agents logoff? -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.2 - Release Date: 1/21/2005
My questions pertain to logging agents in and out of the Asterisk system. Currently I have these 2 extensions setup for this purpose. exten => 27,1,AgentCallbackLogin(|${CALLERIDNUM}@incoming) exten => 26,1,AgentCallbackLogin(${CALLERIDNUM}|'#') My first problem is with what happens when a agent logs themselves out of Asterisk. Unfortunately, agents will still receive calls regardless of there agent status. Preferable I would like calls to go to voice mail. Status from CLI 123 (John Smith) not logged in (musiconhold is 'manual') Secondly, and more an annoyance rather than a actual problem. Is there any better way to log a user out of Asterisk so that the user does not have to enter pound as a new extension.
Hi. Another agent question: is it possible to put an agentlogoff on an extension, without dialing a '#' for a password? Something like: exten => 702,1,AgentCallbackLogin(,,'#'@interncall) But it does not work, because asterisk does not except '#' as a valid extension ... A perl skript would also help me .. Greetings, Marcus
That helped a little. Thanks a lot! Is there any chance to determine the agent id (defined in agents.conf) of a caller?> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > Anthony Rodgers > Sent: Wednesday, November 23, 2005 2:11 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Agent Logoff > > Hi Marcus, > > Here's what we do: > > [agent-login] > exten => s,1,NoOp(${AgentUser}) > exten => s,2,AddQueueMember(${AgentContext}|${AgentChannel}) > exten => s,3,Wait(1) > exten => s,4,Playback(agent-loginok) > exten => s,5,Hangup > exten => s,103,RemoveQueueMember(${AgentContext}|${AgentChannel}) > exten => s,104,Wait(1) > exten => s,105,Playback(agent-loggedoff) exten => s,106,Hangup > > [help-desk] > exten => s,1,Answer > exten => s,2,SetMusicOnHold(default) > exten => s,3,DigitTimeout,5 > exten => s,4,ResponseTimeout,10 > exten => s,5,SetVar(AgentContext=${CONTEXT}) > exten => s,6,SetVar(AgentChannel=${CHANNEL}) > exten => s,7,Cut(AgentChannel=AgentChannel,-,1) > exten => s,8,Cut(AgentUser=AgentChannel,/,2) > exten => s,9,NoOp(${AgentUser}) > ; help-desk agents > exten => s,10,GotoIf($[$["${AgentUser}" = "davidb"] | $["$ > {AgentUser}" = "karenj"] | $["${AgentUser}" = "laurp"]]?agent-login,s, > 1:) > exten => s,11......... (rest of queue) > > exten => 2313,1,Goto,help-desk|s| > 1 > > What this basically means is that if an agent calls the queue > from their own phone, it logs them in or out as appropriate > without the need for passwords or anything. > > Does this look like it might help? > > Regards, > -- > Anthony Rodgers > Business Systems Analyst > District of North Vancouver > Web: http://www.dnv.org > RSS Feed: http://www.dnv.org/rss.asp > > > On 22-Nov-05, at 10:01 PM, Marcus Deluigi ((intern)) wrote: > > > > > Hi. > > > > Another agent question: is it possible to put an agentlogoff on an > > extension, without dialing a '#' for a password? > > Something like: > > exten => 702,1,AgentCallbackLogin(,,'#'@interncall) > > But it does not work, because asterisk does not except '#' > as a valid > > extension ... > > > > A perl skript would also help me .. > > > > Greetings, > > Marcus > > > > _______________________________________________ > > --Bandwidth and Colocation sponsored by Easynews.com -- > > > > Asterisk-Users mailing list > > Asterisk-Users@lists.digium.com > > http://lists.digium.com/mailman/listinfo/asterisk-users > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
> > That helped a little. > > Thanks a lot! > > > > Is there any chance to determine the agent id (defined in > agents.conf) > > of a caller? > > If I'm understanding you correctly, you seem to be under the > impression that you can only use > RemoveQueueMember/AddQueueMember on agents that are defined > in agents.conf? If so, there is no such relationship. The > agent id you pass to these commands doesn't have to be > defined anywhere..Thanks, but that's not the case. I just want to automatically register the agents to the same extension as their Agent ID. I wrote a small Perl AGI script, but it would be more easy and convenient to have this directly in extension.conf So, since the agents don't enter an extension on their login, it would make sense if they would not need to enter one on their logoff. But it seems that that's not possible, since I have no way to automatically send 0-length extension to Asterisk.