# 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="/files/tYsBgqXvD9DV5euOc4N0" alt=""><figcaption><p>"System file customization" section</p></figcaption></figure>

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

<figure><img src="/files/Sx5mTO61SufPyTby5qld" 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="/files/68oHdS3y3OkltKTgAUL8" alt=""><figcaption><p>The code for the "crontabs/root" file</p></figcaption></figure>

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

<figure><img src="/files/lQ5KrnWk2aIBS2cBkmBZ" 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="/files/irqw9dw4PEr8yW74NN9r" alt=""><figcaption><p>Code for modules.conf</p></figcaption></figure>

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

<figure><img src="/files/R61HVwQh4xX75UmmNNdE" 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="/files/4Y3mGWR3R90OMt4Te1sl" alt=""><figcaption><p>Code for extensions.conf</p></figcaption></figure>

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

<figure><img src="/files/jit5U3eu940olFY1D1cr" 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="/files/PigeaK24tKO8hgLEtX1D" 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="/files/u79TGbv4gdhN5EaSQRUQ" 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: 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:

```
GET https://docs.mikopbx.com/mikopbx/english/faq/cases/paging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
