How to set incoming calls limit for sip peer in queue

I have enabled autofill option in queue for periodical calls. Sometimes queue is sending more than once calls to the available agents. If I set call-limit then agent will not able to do conference calls. Is there any way to set incoming call limit…? or any other configuration is there to avoid multiple calls at a time. We are using asterisk 13.5

What is ringinuse set to? (You will probably need a call limit for this to work, although a high value should do.)

There is probably a window between testing the device state and attempting the call in which it could still end up calling twice.

ringinuse = no. I have set ringinuse as no

Have you set a call limit (can be a large number)?

Yes, I have tested with call-limit. If I set call-limit as 1. Unable to use conference facility. so I should not use call-limit.

1 is not a large number.

set callcounter=yes on the sip peers , and on your queue set ringinuse=no. That should work.

[quote]you can verify device state ;

asterisk-pbx*CLI> queue show support
support has 0 calls (max unlimited) in ‘rrmemory’ strategy (18s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s
Members:
SIP/102 (ringinuse disabled) (In use) has taken no calls yet
SIP/100 (ringinuse disabled) (Not in use) has taken no calls yet
No Callers
[/quote]

I have configured callcounter as yes only for sip peers.

Please find the below queue configuration,

[quote][ul]timeout - 24
ringinuse - no
announce_frequency - 30
periodic_announce - V_All_representativr_are_busy
periodic_announce_frequency - 45
retry - 5
wrapuptime - 5
autofill - yes
strategy - rrmemory[/ul]
[/quote]

TestBPO*CLI> queue show General
General has 0 calls (max unlimited) in ‘rrmemory’ strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s
Members:
Local/4017@queue/o (ringinuse disabled) (realtime) (Unavailable) has taken no calls yet
Local/4007@queue/o (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
Local/4020@queue/o (ringinuse disabled) (realtime) (paused) (Not in use) has taken no calls yet
Local/4010@queue/o (ringinuse disabled) (realtime) (paused) (Not in use) has taken no calls yet
Local/4000@queue/o (ringinuse disabled) (realtime) (paused) (Not in use) has taken no calls yet
Local/4014@queue/o (ringinuse disabled) (realtime) (Unavailable) has taken no calls yet
Local/4004@queue/o (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
Local/4018@queue/o (ringinuse disabled) (realtime) (paused) (Not in use) has taken no calls yet
Local/4008@queue/o (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
Local/4011@queue/o (ringinuse disabled) (realtime) (paused) (Not in use) has taken no calls yet
Local/4001@queue/o (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
Local/4015@queue/o (ringinuse disabled) (realtime) (paused) (Not in use) has taken no calls yet
Local/4005@queue/o (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
Local/4019@queue/o (ringinuse disabled) (realtime) (paused) (Not in use) has taken no calls yet
Local/4009@queue/o (ringinuse disabled) (realtime) (Unavailable) has taken no calls yet
Local/4012@queue/o (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
Local/4002@queue/o (ringinuse disabled) (realtime) (Not in use) has taken 3 calls (last was 3656 secs ago)
Local/4016@queue/o (ringinuse disabled) (realtime) (paused) (Not in use) has taken no calls yet
Local/4006@queue/o (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
Local/4013@queue/o (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
Local/4003@queue/o (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
No Callers