# Rules Block - VoIP

<figure><img src="/files/04ffcb079326bbf8151aeb298bfbc0dc7717cbc5" alt=""><figcaption></figcaption></figure>

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

***

### What is the Rules Block?

<figure><img src="/files/7cb9465acb97a53481e8b4262c3fc350adea0168" alt=""><figcaption></figcaption></figure>

In Sprinthub's service flow, the **Rules Block** acts 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 coming from specific numbers or outside business hours.

***

### How does it work?

The rules block has the following features

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

<figure><img src="/files/5b80a1b7af954c24e4c31c24dd946cadb9f126ee" 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="/files/038e1428bd314ca028c2141e0b8d6858fc58aa53" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/b1b21545ad631aff46ea90c45f890a68947e02e7" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/en/topics/general/voip/how-the-voip-queue-works/rules-block-voip.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
