[asterisk-users] Agent solution w/o id/password

Anthony Rodgers Anthony_Rodgers at dnv.org
Wed Aug 30 10:20:42 MST 2006


Here's what we do:

[agent-login]
exten => s,1,NoOp(${AgentUser})
exten => 
s,2,AddQueueMember(${AgentContext}|${AgentChannel}|${AgentPenalty})
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

[tax-line]
exten => s,1,Macro(dnv-messagebox-setup)
exten => s,n,Set(AgentContext=${CONTEXT})
exten => s,n,Set(AgentChannel=${CHANNEL})
exten => s,n,Set(AgentChannel=${CUT(AgentChannel,-,-2)})
exten => s,n,Set(AgentUser=${CUT(AgentChannel,/,2)})
exten => s,n,NoOp(${AgentUser})
; tax-queue agents
exten => s,n,GotoIf($["${AgentUser}" = "2488-tessmanl"]?:macdonap)
exten => s,n,Set(AgentPenalty=1)
exten => s,n,Goto(agent-login,s,1)
exten => s,n(macdonap),GotoIf($["${AgentUser}" = 
"2488-macdonap"]?:chengb)
exten => s,n,Goto(agent-login,s,1)
exten => s,n(chengb),GotoIf($["${AgentUser}" = "2488-chengb"]?:listhael)
exten => s,n,Set(AgentPenalty=2)
exten => s,n,Goto(agent-login,s,1)
exten => s,n(listhael),GotoIf($["${AgentUser}" = 
"2488-listhael"]?:nguyent)
exten => s,n,Set(AgentPenalty=3)
exten => s,n,Goto(agent-login,s,1)
exten => s,n(nguyent),GotoIf($["${AgentUser}" = 
"2488-nguyent"]?:NonAgentStart)
exten => s,n,Set(AgentPenalty=4)
exten => s,n,Goto(agent-login,s,1)
exten => s,n(NonAgentStart),BackGround(call-processors/2488)

Hope this helps.

CP

On Aug 30, 2006, at 8:55 AM, Artifex Maximus wrote:

> Hello,
>
> I'm looking for an agent managing dialplan/software/agi/whatever that
> independent from asterisk queue management. I already tried this
>
> http://www.voip-info.org/wiki/view/Agents+without+agent+channel
>
> with no success but a lot of warning. I'm using asterisk 1.2.10 and
> the dialplan above made for 1.0 might that cause the trouble.
>
> So I'm looking for an agent management that not need agents.conf like
> id and password for login. Instead if someone dial an extension from
> his phone that agent (extension actually) login. If dial an another
> extension he logout. If a logged in agent don't answer for a duration
> automatically logoff. If no free agent on incoming call just play a
> sound and hangup. This time I don't need queues just 'plain' agents
> whos dynamically login/logout.
>
> For example:
> I dial 8301 and I log in with my phone (Zap, SIP, whatever). If I dial
> 8302 then I log off. If I don't answer for an incoming within 15 secs
> asterisk automatically log me out.
>
> If asterisk's queue managent can do this by default that would be much
> better but as I see that only know the id/password solution.
>
> bye,
> Zsolt
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list