[Asterisk-Users] Agent Penalty

Steve Dolloff sdolloff at dls.net
Wed Jul 20 06:56:57 MST 2005


Can anyone shed any light on an issue with agent penalties?  

I have 2 queues set up with agents working both queues, but where agent
1 should have a penalty for queue 2 and agent 2 should have a penalty
for queue 1.  When a call is sent to either queue, it rings agents with
and without penalties at the same time.

I set up a second system and cannot replicate the issue on the test
system.  I have completely stopped asterisk and restarted it thinking
that perhaps a change did not take effect with a reload.

Below are the configurations, debug and some cli output.

This is running 1.0.2, but I didn't see any fixed bugs related to this
on mantis. 

queues.conf
[support]
music = 2
strategy = ringall
context = support
timeout = 15
announce-holdtime = yes
announce-frequency = 60
member => Agent/235,0
member => Agent/223,1
[commercial]
music = 2
strategy = ringall
context = default
timeout = 10
announce-holdtime = yes
announce-frequency = 60
member => Agent/223,0
member => Agent/235,1

agents.conf
[agents]
ackcall=no
wrapuptime=5000
agent => 223,,Agent 1
agent => 235,,Agent 2

extensions.conf
[agents]
exten => 223,1,SetVar(BASEEXTEN=${EXTEN})
exten => 223,2,Dial(SIP/${EXTEN},24,rt)
exten => 223,3,Hangup
exten => 235,1,SetVar(BASEEXTEN=${EXTEN})
exten => 235,2,Dial(SIP/${EXTEN},24,rt)
exten => 235,3,Hangup
[features]
exten => 904,1,AgentCallbackLogin(${CALLERIDNUM}|${CALLERIDNUM}@agents)
exten => 904,2,Hangup
exten => 905,1,Dial(Local/seagentlogout at features/n,,D(#))
exten => seagentlogout,1,AgentCallbackLogin(${CALLERIDNUM})
exten => seagentlogout,2,Hangup
[support]
exten => 1,1,DigitTimeout(2)
exten => 1,2,Background(hpbx/20)
exten => 1,3,Random(50:69)
exten => 1,4,SetCIDName(Support Queue - ${CALLERIDNAME})
exten => 1,5,Queue(support|t)
exten =>
1,69,Monitor(wav,queue-1-${UNIQUEID}-${EPOCH}-${CALLERIDNUM},bm)
exten => 1,70,Goto(4)

    -- Executing DigitTimeout("SIP/10.0.226.26-b622b728", "2") in new
stack
    -- Set Digit Timeout to 2
    -- Executing Random("SIP/10.0.226.26-b622b728", "50:69") in new
stack
    -- Executing SetCIDName("SIP/10.0.226.26-b622b728", "Support Queue -
Cell Phone") in new stack
    -- Executing Queue("SIP/10.0.226.26-b622b728", "support|t") in new
stack
    -- Started music on hold, class '2', on SIP/10.0.226.26-b622b728
    -- Stopped music on hold on SIP/10.0.226.26-b622b728
    -- Playing 'queue-youarenext' (language 'en')
    -- Told SIP/10.0.226.26-b622b728 in support their queue position
(which was 1)
    -- Playing 'queue-thankyou' (language 'en')
    -- Started music on hold, class '2', on SIP/10.0.226.26-b622b728
    -- outgoing agentcall, to agent '235', on 'Local/235 at agents-0e5e,1'
    -- Called Agent/235
    -- outgoing agentcall, to agent '223', on 'Local/223 at agents-f0ec,1'
    -- Called Agent/223
    -- Executing SetVar("Local/235 at agents-0e5e,2", "BASEEXTEN=235") in
new stack
    -- Executing Dial("Local/235 at agents-0e5e,2", "SIP/235|24|rt") in new
stack
    -- Called 235
    -- Agent/235 is ringing
    -- Executing SetVar("Local/223 at agents-f0ec,2", "BASEEXTEN=223") in
new stack
    -- Executing Dial("Local/223 at agents-f0ec,2", "SIP/223|24|rt") in new
stack
    -- Called 223
    -- Agent/223 is ringing
    -- SIP/235-8429 is ringing
    -- SIP/223-cc03 is ringing

show queues
commercial   has 0 calls (max unlimited) in 'ringall' strategy (33s
holdtime), C:7, A:0, SL:0.0% within 0s
   Members:
      Agent/223 has taken 1 calls (last was 6392 secs ago)
      Agent/235 with penalty 1 has taken no calls yet
   No Callers

support      has 0 calls (max unlimited) in 'ringall' strategy (21s
holdtime), C:14, A:1, SL:0.0% within 0s
   Members:
      Agent/235 has taken 3 calls (last was 71 secs ago)
      Agent/223 with penalty 1 has taken 2 calls (last was 6318 secs
ago)
   No Callers

show agents
223          (Agent 1) available at '223 at agents' (musiconhold is
'default')
235          (Agent 2) available at '235 at agents' (musiconhold is
'default')




More information about the asterisk-users mailing list