> 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/paging.md).

# Setting up the "Paging" function

Paging through phones, i.e. transmitting a voice message through several phones via speakerphone. For example, a manager can quickly call a meeting.

{% hint style="info" %}
This instruction is suitable for phones:

* **Linksys**
* **Cisco**
* **Telephone** (Softphone)
* **Grandstream**
* **microsip** (Softphone)
* **Yealink**
* **Fanvil**
* **Snom**
  {% endhint %}

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

<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 customization" section</p></figcaption></figure>

2. Open the file "**/var/spool/cron/crontabs/root**" for editing

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FUKlrIakx7oEYm7JmpJ05%2Fcrontabsroot.png?alt=media&amp;token=c5498155-d54a-4721-8481-e1a5923f36d4" alt=""><figcaption><p>"crontabs/root" file</p></figcaption></figure>

3. Add the following code to the end of the file:

```php
*/1 * * * * /bin/touch /etc/asterisk/confbridge.conf > /dev/null 2> /dev/null
```

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FNVIHuUzB0AGWNoy3XPIj%2FcodeForCrontabsRoot.png?alt=media&amp;token=303428d8-1338-48bc-9c37-9f5532e5fcb8" alt=""><figcaption><p>The code for the "crontabs/root" file</p></figcaption></figure>

4. Proceed to editing the "**modules.conf**" file

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FOOR18KwpzDhecRg5Ek3s%2FmodulesConf.png?alt=media&amp;token=7cd59158-ba08-43dc-82c0-97c47e7a2c29" alt=""><figcaption><p>"Modules.conf" file</p></figcaption></figure>

5. Add the following code to the end of the file:

```php
load => bridge_softmix.so
load => app_confbridge.so
load => app_page.so
```

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FDS4Rqg32w1ZTKOwuCx5h%2FcodeForModules.png?alt=media&amp;token=762ae278-dbc2-4a24-b0b0-b5e09f0f3820" alt=""><figcaption><p>Code for modules.conf</p></figcaption></figure>

6. Go to editing the file "**extensions.conf**"

<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>

7. Add the following code to the end of the "**extensions.conf**" file

```php
[paging-users] 
exten => _X!,1,Set(dС=${PJSIP_DIAL_CONTACTS(${EXTEN})})
  same => n,ExecIf($["${dС}x" != "x"]?Dial(${dС},,b(paging_create_chan,s,1)))

[paging_create_chan] 
exten => s,1,Set(PJSIP_HEADER(add,Call-Info)=\;answer-after=0) 
  same => n,return
```

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FMU0WJGtlbTrAKBjt4cuP%2FcodeForExtensions.conf.png?alt=media&amp;token=dcddccd4-c9a7-490b-85d5-4774e1272f86" alt=""><figcaption><p>Code for extensions.conf</p></figcaption></figure>

8. Go to the "**Dialplan Applications**" section, create a new dialplan

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FUpTtECT85QRzaSutFHSD%2FnewDialplan.png?alt=media&amp;token=3e594ca4-f942-46d7-be1b-abf812f338d9" alt=""><figcaption><p>New dialplan</p></figcaption></figure>

9. Assign an internal number, for example 2200110. Set the code type: "**Asterisk Dialplan**"

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FyQ04TvxIxQNZxqFx31yY%2FSettingsForDialplan.png?alt=media&amp;token=e3aa7b68-a2c2-4906-b3e7-2b12cc8bafcc" alt=""><figcaption><p>Dialplan Settings</p></figcaption></figure>

10. Go to the "**Programme Code**" tab, insert the following code:

```php
1,Page(Local/202@paging-users&Local/203@paging-users)
```

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FGeMmH02YQmQspuBXH5Gh%2FcodeForDialplan.png?alt=media&amp;token=90c3980f-7c48-45b2-b43e-0899bc80871a" alt=""><figcaption><p>Code for dialplan</p></figcaption></figure>

{% hint style="warning" %}
In the application code, describe the contacts to whom you should call. Contacts are listed with a **&** separator.
{% endhint %}


---

# 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/cases/paging.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.
