# Prohibiting calls via a backup route

When describing [outgoing routes](https://docs.mikopbx.com/mikopbx/english/manual/routing/outbound-routing), it is allowed to use the same phone number template.&#x20;

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.&#x20;

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

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&#x26;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&#x26;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&#x26;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&#x26;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.
