# Calls to emergency numbers

{% hint style="success" %}
It is necessary to be able to call emergency numbers 112, 1xx
{% endhint %}

1. Go to the **Routing** → **Outbound routes** section.

<figure><img src="/files/lHmJepZyFLMSnHP3ciuB" alt=""><figcaption><p>Outbound routing section</p></figcaption></figure>

2. Adding a new rule

<figure><img src="/files/rA8RLA3B8LyJ2L7S7Kox" alt=""><figcaption><p>New rule</p></figcaption></figure>

3. Fill in the parameters as in the screenshot below:

<figure><img src="/files/oG7RvVXPxFjoSo9l2VNT" alt=""><figcaption><p>Parameters for emergency calls rule</p></figcaption></figure>

4. You direct calls to emergency numbers through an arbitrary provider. The provider **must support** dialing emergency numbers. The priority of this rule should be the highest, i.e. it should be described first in the list of created outgoing routes.

<figure><img src="/files/JipwnzaQCJDBiAMgyrai" alt=""><figcaption><p>Priority of outbound routing</p></figcaption></figure>

5. Go to **System** → S**ystem file customization**

<figure><img src="/files/tYsBgqXvD9DV5euOc4N0" alt=""><figcaption><p>System file ccustomization section</p></figcaption></figure>

6. Open the **extensions.conf** configuration file for editing.

<figure><img src="/files/R61HVwQh4xX75UmmNNdE" alt=""><figcaption><p>extensions.conf file</p></figcaption></figure>

7. Set the "**Add to end of file**" mode. In the black window, add the following code snippet:

```php
[internal](+)
exten => _1XX,1,Goto(outgoing,${EXTEN},1)	
```

<figure><img src="/files/Izi1QnQTSmsyLtuyQ53C" alt=""><figcaption><p>Code for extensions.conf</p></figcaption></figure>

In the above code snippet, we described the rules for all three-digit numbers starting with 1. If you need to specify specific emergency numbers, then instead of the above code, you need to insert the following lines:

```php
[internal](+)
exten => 112,1,Goto(outgoing,${EXTEN},1)
exten => 101,1,Goto(outgoing,${EXTEN},1)
exten => 102,1,Goto(outgoing,${EXTEN},1)
exten => 103,1,Goto(outgoing,${EXTEN},1)
```


---

# 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.mikopbx.com/mikopbx/english/faq/outbound-routing/calls-to-emergency-numbers.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.
