[Asterisk-Users] Agent Logoff

Marcus Deluigi (intern) i-mardel at wicresoft.com
Wed Nov 23 00:02:54 MST 2005


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 at lists.digium.com 
> [mailto:asterisk-users-bounces at 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 at 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 at 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
> 



More information about the asterisk-users mailing list