Queue calls distribution

The goal of this article is to provide you a way to manage Queue Call Distribution using a Cally Square project.

Example 1: Random distribution between two queues

In this example you want to assign 70% of inbound calls to the first queue and 30% of inbound calls to the second queue.

  1. Configure SET block in your project


  2. Configure GOTOIF block in your project: change the condition according to your needs.
    You need to insert the percentage value of the second queue + 1.


  3. Configure the QUEUE blocks.

Example 2: Random distribution between three queues

In this example, you want to equally distribute inbound calls between three queues.

  1. Configure SET block in your project


  2. Configure GOTOIF blocks in your project




  3. Configure the QUEUE blocks


Example 3: Round Robin Memory distribution between five queues

The calls will be allocated following the Round Robin Memory strategy.

The first call will be sent to the queue 1, the second call to the queue 2 and so on.


  • Configure the GotoIf block (GotoIfExist)

  • Set the custom InitDB 

  • Configure the GotoIf block (GotoIfMaxN)

  • Set the RESULT variable
  • Configure the MATH block

  • Set the new value to the DB (custom application)
  • Set the SWITCH block:
  • and configure the queue blocks