> 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/cases/disable-forwarding-to-mobile-for-internal-calls.md).

# Disable forwarding to mobile for internal calls

In the [extension ](/mikopbx/english/manual/telephony/extensions.md)settings you can configure routing. If an employee is not available, the call can be directed to his mobile phone number. This function is not necessary for all cases. For example, clients often ask to turn it off for internal calls.

1. Go to the “**System**” section -> “**System file customization**”

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

2. Select the file “**/etc/asterisk/extensions.conf**” to edit.

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

3. Select the “**Add to end of file**” mode.

<figure><img src="/files/C7EW4Aums6AgUXyM3cQZ" alt=""><figcaption><p>“Add to end of file” mode</p></figcaption></figure>

4. Add the code to the second field:

{% code fullWidth="true" %}

```php
[internal-users-custom]
exten => _X!,1,ExecIf($[ "${FROM_DID}x" == "x" ]?Set(__QUEUE_SRC_CHAN=${CHANNEL}))
	same => n,return
```

{% endcode %}

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


---

# 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 dynamically by asking a question.

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

```
GET https://docs.mikopbx.com/mikopbx/english/faq/cases/disable-forwarding-to-mobile-for-internal-calls.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
