> 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/unique-background-music-for-the-queue.md).

# Unique background music for the queue

The function can be useful if there is a need to play an advertising audio file instead of background music. You can assign your own file to each queue.

1. Go to the section "**Telephony**" -> "**Sound files**" -> "**Music on hold**"

<figure><img src="/files/74zjvgVSQviFvo2VxCNX" alt=""><figcaption><p>Music on hold section</p></figcaption></figure>

2. Add media files:

<figure><img src="/files/qMXbqjwH2Wwu5zDJJd7G" alt=""><figcaption><p>New audio file</p></figcaption></figure>

3. After saving the media file, copy its ID from the browser address bar. For example , in a link like "<mark style="color:blue;"><http://192.168.0.41/admin-cabinet/sound-files/modify/5></mark>" the identifier is the number **5**.

<figure><img src="/files/FY62GmITgIFXVvLBcOPc" alt=""><figcaption><p>ID of the media file</p></figcaption></figure>

4. Go to the "**System**" -> "**System file customization**"

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

5. Open the file "**/etc/asterisk/extensions.conf**" for editing

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

6. Paste the following code at the end of the file:

```php
[queue-pre-dial-custom]
exten => 2001,1,Set(CHANNEL(musicclass)=moh-5)
exten => 2002,1,Set(CHANNEL(musicclass)=moh-6)
exten => _X!,2,return
```

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

{% hint style="success" %}
According to this example, for the queue with the number "**2001**", a file with the ID **5** will be played in the background, for the queue "**2002**", a file with the ID **6**
{% 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 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/unique-background-music-for-the-queue.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.
