# Simultaneous calls in asterisk queue using rrmemory creating issue

**URL:** <https://community.asterisk.org/t/simultaneous-calls-in-asterisk-queue-using-rrmemory-creating-issue/73540>\
**Category:** Asterisk Support\
**Created:** [February 15, 2018, 4:05pm UTC](https://community.asterisk.org/t/simultaneous-calls-in-asterisk-queue-using-rrmemory-creating-issue/73540 "2018-02-15T16:05:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simplesunny](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/simplesunny/32/3721_2.png) [@Simplesunny](https://community.asterisk.org/u/Simplesunny)\
**Post date:** [February 15, 2018, 4:05pm UTC](https://community.asterisk.org/t/simultaneous-calls-in-asterisk-queue-using-rrmemory-creating-issue/73540/1 "2018-02-15T16:05:13Z")

</div>

I have tried 2 calls simultaneously in asterisk Queue using rrmemory and tried others strategies too other than ringall and first is Call-1 and the other is Call-2 going to the same QUEUE. Our issue is that while call-1 is ringing an agent, call-2 is not being tried on any agent.  
call-2 is delivered to an agent only after call-1 is answered which results in an unacceptable delay and slows down call centre operations. I am sending you 2 debug logs.You can see that both calls arrive at 14:28:08,  
call-1 rings for 9 secs after which it is answered by an agent. call-2 in the meanwhile is on hold and only starts rining a free agent after call-1 has been answered i.e a delay of 9 secs. It appears  
that the 2nd call is not attempted on agents even though they are free. We can see in the debug log a line “app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546)” being repeated every second  
for 9 secs and it shows “its our turn” only after call-1 is answered.

Is this normal behavior? this is a customer with 40 agents with many concurrent incoming calls and is causing us huge operational problems. Can you please suggest a fix?

================START CALL-1================

[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:6943 queue\_exec: queue: 10287-1234567890, options: tT, url: , announce: , timeout: 180, agi: , macro: , gosub: , rule: , position:  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:6971 queue\_exec: NO QUEUE\_PRIO variable found. Using default.  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:7023 queue\_exec: queue: 10287-1234567890, expires: 1518705068, priority: 0  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:2857 update\_realtime\_members: Queue 10287-1234567890 has no realtime members defined. No need for update  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:2998 join\_queue: Queue ‘10287-1234567890’ Join, Channel ‘SIP/Cloud-RT-Common-000f6547’, Position ‘1’  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:4647 is\_our\_turn: It’s our turn (SIP/Cloud-RT-Common-000f6547).  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:5245 try\_calling: SIP/Cloud-RT-Common-000f6547 is trying to call a queue member.  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:3837 ring\_one: Trying ‘SIP/1028733’ with metric 6  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:3554 can\_ring\_entry: SIP/1028733 not available, can’t receive call  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:3837 ring\_one: Trying ‘SIP/1028706’ with metric 7  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:3554 can\_ring\_entry: SIP/1028706 not available, can’t receive call  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:3837 ring\_one: Trying ‘SIP/1028735’ with metric 8  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:3554 can\_ring\_entry: SIP/1028735 not available, can’t receive call  
[Feb 15 14:28:08] DEBUG[30904][C-00072943]: app\_queue.c:3837 ring\_one: Trying ‘SIP/1028736’ with metric 9  
[Feb 15 14:28:17] DEBUG[30904][C-00072943]: app\_queue.c:3859 store\_next\_rr: Next is ‘SIP/1028720’ with metric 10  
[Feb 15 14:28:17] DEBUG[30904][C-00072943]: app\_queue.c:3288 leave\_queue: Queue ‘10287-1234567890’ Leave, Channel ‘SIP/Cloud-RT-Common-000f6547’

============END CALL-1=================

============START CALL-2===============

[Feb 15 14:28:08] DEBUG[30902][C-00072942]: app\_queue.c:6943 queue\_exec: queue: 10287-1234567890, options: tT, url: , announce: , timeout: 180, agi: , macro: , gosub: , rule: , position:  
[Feb 15 14:28:08] DEBUG[30902][C-00072942]: app\_queue.c:6971 queue\_exec: NO QUEUE\_PRIO variable found. Using default.  
[Feb 15 14:28:08] DEBUG[30902][C-00072942]: app\_queue.c:7023 queue\_exec: queue: 10287-1234567890, expires: 1518705068, priority: 0  
[Feb 15 14:28:08] DEBUG[30902][C-00072942]: app\_queue.c:2857 update\_realtime\_members: Queue 10287-1234567890 has no realtime members defined. No need for update  
[Feb 15 14:28:08] DEBUG[30902][C-00072942]: app\_queue.c:2998 join\_queue: Queue ‘10287-1234567890’ Join, Channel ‘SIP/Cloud-RT-Common-000f6546’, Position ‘2’  
[Feb 15 14:28:08] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:08] DEBUG[30902][C-00072942]: app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:09] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:09] DEBUG[30902][C-00072942]: app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:10] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:10] DEBUG[30902][C-00072942]: app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:11] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:11] DEBUG[30902][C-00072942]: app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:12] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:12] DEBUG[30902][C-00072942]: app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:13] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:13] DEBUG[30902][C-00072942]: app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:14] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:14] DEBUG[30902][C-00072942]: app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:15] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:15] DEBUG[30902][C-00072942]: app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:16] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:16] DEBUG[30902][C-00072942]: app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:17] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:17] DEBUG[30902][C-00072942]: app\_queue.c:4650 is\_our\_turn: It’s not our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:4632 is\_our\_turn: There is 1 available member.  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:4647 is\_our\_turn: It’s our turn (SIP/Cloud-RT-Common-000f6546).  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:5245 try\_calling: SIP/Cloud-RT-Common-000f6546 is trying to call a queue member.  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3837 ring\_one: Trying ‘SIP/1028720’ with metric 10  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3554 can\_ring\_entry: SIP/1028720 not available, can’t receive call  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3837 ring\_one: Trying ‘SIP/1028721’ with metric 11  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3554 can\_ring\_entry: SIP/1028721 not available, can’t receive call  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3837 ring\_one: Trying ‘SIP/1028734’ with metric 12  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3554 can\_ring\_entry: SIP/1028734 not available, can’t receive call  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3837 ring\_one: Trying ‘SIP/1028717’ with metric 13  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3554 can\_ring\_entry: SIP/1028717 not available, can’t receive call  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3837 ring\_one: Trying ‘SIP/1028739’ with metric 14  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3554 can\_ring\_entry: SIP/1028739 not available, can’t receive call  
[Feb 15 14:28:18] DEBUG[30902][C-00072942]: app\_queue.c:3837 ring\_one: Trying ‘SIP/1028737’ with metric 15  
[Feb 15 14:28:20] DEBUG[30902][C-00072942]: app\_queue.c:3859 store\_next\_rr: Next is ‘SIP/1028725’ with metric 16  
[Feb 15 14:28:20] DEBUG[30902][C-00072942]: app\_queue.c:3288 leave\_queue: Queue ‘10287-1234567890’ Leave, Channel ‘SIP/Cloud-RT-Common-000f6546’

============END CALL-2=================

---

<div class="post-metadata">

**Author:** ![johnkiniston](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/johnkiniston/32/28_2.png) [@johnkiniston](https://community.asterisk.org/u/johnkiniston)\
**Post date:** [February 15, 2018, 4:34pm UTC](https://community.asterisk.org/t/simultaneous-calls-in-asterisk-queue-using-rrmemory-creating-issue/73540/2 "2018-02-15T16:34:11Z")

</div>

What’s your ‘autofill’ setting set to?

---

<div class="post-metadata">

**Author:** ![Simplesunny](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/simplesunny/32/3721_2.png) [@Simplesunny](https://community.asterisk.org/u/Simplesunny)\
**Post date:** [February 16, 2018, 6:19am UTC](https://community.asterisk.org/t/simultaneous-calls-in-asterisk-queue-using-rrmemory-creating-issue/73540/3 "2018-02-16T06:19:34Z")

</div>

autofill was not there so I set to yes now and it seems working fine

Thank you so much @johnkiniston
