> For the complete documentation index, see [llms.txt](https://docs.mikopbx.com/mikopbx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mikopbx.com/mikopbx/english/faq/outbound-routing/prohibiting-calls-via-a-backup-route.md).

# Prohibiting calls via a backup route

When describing [outgoing routes](/mikopbx/english/manual/routing/outbound-routing.md), it is allowed to use the same phone number template.

If several routes are used with the same template, the PBX will try to make a call on each of the routes until the call is accepted.

This functionality is not always necessary and there may be a need to disable it.

At the moment, this can only be done through the customization of the PBX.

1. Go to the provider's settings and copy its ID in the browser's address bar:

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F3XStuOpw48SpfaPoja1Q%2FProviderID.png?alt=media&amp;token=18907fb7-e20c-426f-ac7e-def2b35ae001" alt=""><figcaption><p>Provider ID</p></figcaption></figure>

2. Go to the section "**System file customization**"

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2Fn06cIfMIqk6wJhcxD3gW%2FSystemFileCustomization.png?alt=media&amp;token=4edfbfbf-6903-46c5-b1b5-d2a62131f59e" alt=""><figcaption><p>System file cuztomization menu</p></figcaption></figure>

3. Go to the editing section of the **extensions.conf** file.

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FNuELWVzuFh5rThr08jvu%2FEditExtensions.conf.png?alt=media&amp;token=567dc075-00ed-45a7-bc10-915ccc1dc97f" alt=""><figcaption><p>extensions.conf file</p></figcaption></figure>

4. Add the following context to the end of the file:

```php
[SIP-1687941868-outgoing-after-dial-custom]
exten => _X!,1,Hangup()
	same => n,return
```

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2Fby5VZZrNSjghpex7SBft%2FCodeForExtensions.png?alt=media&amp;token=8cd4b3ee-6501-4338-997a-4d94dd81d070" alt=""><figcaption><p>Code in extensions.conf</p></figcaption></figure>

Save the changes. Now all calls via routes associated with the provider will occur without taking into account the backup provider. It will work out only the first of the outgoing routes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mikopbx.com/mikopbx/english/faq/outbound-routing/prohibiting-calls-via-a-backup-route.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
