No default music on hold, cannot upload

Irritable0802

New Member
Aug 20, 2024
4
0
1
20
I'm not sure if my installation is just broken - but I do not have any default music on hold, and I cannot upload any. When I go to upload music on hold, it responds with Upload Completed, but there are no files added. I did create a category to test with, which also doesn't work.

I do remember having to set the default setting for recordings to /recordings before that would work, too. I have tried setting the sounds settings to /sounds, /usr/share/freeswitch/sounds (making sure permissions were correct), restarting freeswitch, restarting the entire server etc.

I also noticed during troubleshooting that the modules page doesn't work for me - only mod_translate appears which I believe I added manually.

- Application
- version: 5.5.10
- branch: 5.5
- path: /var/www/fusionpbx
- PHP
- version: 8.1.34
- apcu enabled: false
- Switch
- version: 1.10.12
- Database
- name: PostgreSQL
- version: 17.10
- Operating System
- name: Debian
- version: 11
 

Attachments

  • Screenshot 2026-05-16 at 23.19.56.png
    Screenshot 2026-05-16 at 23.19.56.png
    89.9 KB · Views: 1
  • Screenshot 2026-05-16 at 23.20.28.png
    Screenshot 2026-05-16 at 23.20.28.png
    185.8 KB · Views: 1
  • Screenshot 2026-05-16 at 23.24.10.png
    Screenshot 2026-05-16 at 23.24.10.png
    71.7 KB · Views: 1
Done some more testing on a new instance:

- Modules show up correctly
- Default global music on hold works
- When a category is created, it shows the default global sounds (not sure if this is a bug)
- If I then create the directory manually (it doesn't get created), for example /usr/share/freeswitch/sounds/music/10.1.22.10/test/16000, it then shows no files
- Then, if I upload a file to that category, it doesn't upload. Stays empty, and file is not in the directory

On the first instance, I have at least managed to edit the global default category to work for 16000hz. Music on hold does not actually play, though.
 

Attachments

  • Screenshot 2026-05-17 at 00.39.44.png
    Screenshot 2026-05-17 at 00.39.44.png
    446.8 KB · Views: 0
  • Screenshot 2026-05-17 at 00.39.51.png
    Screenshot 2026-05-17 at 00.39.51.png
    26.3 KB · Views: 0
  • Screenshot 2026-05-17 at 00.40.03.png
    Screenshot 2026-05-17 at 00.40.03.png
    233.6 KB · Views: 0
Last edited:
I have changed my default settings to match those of the new instance, with no difference to music on hold. I have managed to get the default to play, along with playing recordings.

I believe the actual bug here is:

1. setup a fresh instance, debian 13 in this case but doesn't make a difference
2. try to upload a music on hold file to a new category
3. the category is created in the database, but the folder structure is not created. The file is not uploaded
4. if you create the directory structure manually, it'll now show no files under that category
5. try and upload again, nothing happens - the file doesn't get uploaded
 
Last edited:
Right it seems like I have found the issue - the php-fpm service has ProtectSystem=full on debian, so PHP can't create anything in /usr. I believe this might be a genuine bug not accounted for in the install script, but I haven't looked *that* hard.

sudo mkdir -p /etc/systemd/system/php8.2-fpm.service.d
sudo tee /etc/systemd/system/php8.2-fpm.service.d/moh-override.conf << 'EOF'
[Service]
ReadWritePaths=/usr/share/freeswitch/sounds
EOF
sudo systemctl daemon-reload
sudo systemctl restart php8.2-fpm

seems to fix it