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

# Настройка функции "Paging"

Пейджинг через телефоны, т.е. передача голосового сообщения через насколько телефонов через громкую связь. К примеру руководитель может быстро созвать совещание.

{% hint style="success" %}
Данная инструкция подойдет для телефонов:

* **Linksys**
* **Cisco**
* **Telephone** (софтфон)
* **Grandstream**
* **microsip** (софтфон)
* **Yealink**
* **Fanvil**
* **Snom**
  {% endhint %}

1. Перейдите в раздел "**Кастомизация системных файлов**"

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2FEG9k3Agj9WGHTNytSOg1%2FCustomizationSystemFiles.png?alt=media&amp;token=9dc5b9c3-6fea-4ce7-aa4d-b2c6b488b5c1" alt=""><figcaption><p>Раздел "Кастомизация системных файлов"</p></figcaption></figure>

2. Откройте для редактирования файл "**/var/spool/cron/crontabs/root"**

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2FXegJN4A2ha4Ztphb7D8r%2FcrontabsRoot.png?alt=media&amp;token=c2efe3f8-be51-4a35-a6aa-4200620c81ef" alt=""><figcaption><p>Файл "crontabs/root"</p></figcaption></figure>

3. Добавьте в конец файла следующий код:

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

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2FAL9uCd2b1S3qTOPyi5jM%2FcodeForCrontabsRoot.png?alt=media&amp;token=bbcfc13d-25e2-46a2-9f5e-a30f0f7b5245" alt=""><figcaption><p>Код для файла "crontabs.root"</p></figcaption></figure>

4. Перейдите к редактированию файла "**modules.conf**"

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2FMgp6ZonpsMxKMJpzgOLv%2Fmodules.conf.png?alt=media&amp;token=fb1cb973-0ab1-4456-9713-29ea0fa0c032" alt=""><figcaption><p>Файл "Modules.conf"</p></figcaption></figure>

5. Добавьте следующий код в конец файла:

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

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-9f293435ee8a59396b2ca5d37dbf2209aeef6c90%2FcodeForModulesConf.png?alt=media" alt=""><figcaption><p>Код для "modules.conf"</p></figcaption></figure>

6. Перейдите к редактированию файла "**extensions.conf**"

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-0a1dd07707eb967d811042c18a85b2c567eb1916%2FextensionsConf%20(1).png?alt=media" alt=""><figcaption><p>Файл "extensions.conf"</p></figcaption></figure>

7. Добавьте следующий код в конец файла "extensions.conf"

```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://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2F9GE973cxJCmq63R69YrU%2FcodeForExtensions.conf.png?alt=media&amp;token=b9a360ac-cd0b-488a-8f77-aa1ea2113e91" alt=""><figcaption><p>Код для extensions.conf</p></figcaption></figure>

8. Перейдите в раздел "**Приложения диалпланов**", создайте новый диалплан

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fmj96Ob2QIlTHJSARm6JQ%2FnewDialplan.png?alt=media&amp;token=8844f438-759a-4485-b48a-a842a3277d06" alt=""><figcaption><p>Новый диалплан</p></figcaption></figure>

9. Назначьте внутренний номер, к примеру 2200110. Установите тип кода: ''**Диалплан Asterisk**''

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2FBOjb9VKr64IW6k4XErug%2FsettingsOfDialplan.png?alt=media&amp;token=85f79575-a07d-4c06-a640-f1408021c842" alt=""><figcaption><p>Настройки диалплана</p></figcaption></figure>

10. Перейдите во вкладку "**Программный код**", вставьте следующий код:

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

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-63970643737a5ec34f0fe42d20d8cd64b104b06a%2FcodeForDialplan.png?alt=media" alt=""><figcaption><p>Код для диалплана</p></figcaption></figure>

{% hint style="warning" %}
В коде приложения опишите контакты, кому следует звонить. Контакты перечисляются с разделителем **&**.
{% 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/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.
