> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/general/voip/how-the-voip-queue-works/rules-block-voip.md).

# Rules Block - VoIP

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FlCBh698qdULeU7z7xIbx%2FDALL%C2%B7E%202025-03-29%2010.33.18%20-%20A%20diagram%20of%20a%20flowchart%20representing%20decision-making%20rules%2C%20with%20various%20steps%20shown%20in%20colorful%20rectangles%20and%20arrows%20connecting%20them.%20In%20the%20center.webp?alt=media&amp;token=37c22291-7f10-4b0c-b096-8641ed2a3579" alt=""><figcaption></figcaption></figure>

The **Rule Block** is responsible for defining specific conditions and actions within Sprinthub's VOIP call flow. It allows you to control how calls will be routed based on defined criteria, ensuring greater flexibility and personalization of service.

***

### What is the Rule Block?

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F2bH2zX1V6wB4ktyVzbCa%2Fimage.png?alt=media&amp;token=89e6d572-faa9-4214-b3bc-b90390b543d2" alt=""><figcaption></figcaption></figure>

In Sprinthub's service flow, the **Rule Block** works as a “guardian” or “filter” that analyzes certain call (or system) conditions before deciding the next step. It is especially useful when you need a more elaborate service flow, such as:

* Route to a specific department if the call occurs at a certain time.
* Forward the call to a VIP operator if the originating number is recognized as a premium customer.
* Block calls from specific numbers or outside business hours.

***

### How does it work?

The rule block has the following functionalities

* Accept calls from unknown numbers
* Transfer calls
* Days and times for receiving calls

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FhQZRaOQoZfc8i4MypV03%2Fimage.png?alt=media&amp;token=d6f02f66-8d97-4ff8-802f-24eda028d129" alt=""><figcaption></figcaption></figure>

It is added between the initializer and the operators block, that is, that rule will apply to the following operators.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FsQIzk9KMkskNrsDKcoBr%2Fimage.png?alt=media&amp;token=43f15a1a-ee4f-426d-af7a-b9e3800a8419" alt=""><figcaption></figcaption></figure>

It is also possible to separate operators based on days; in the example below, I put that 3 users answer during the week and only 2 different users answer on the weekend.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FY5FbaCOo6tlHG2fe7Qwn%2Fimage.png?alt=media&amp;token=de3f9c75-cb39-4457-b479-b1ffd04bf96d" alt=""><figcaption></figcaption></figure>
