in

Information

Here you can configure the Music On Hold files that will be
played. You can configure various 'Classes' of Music on Hold, which are
used in Queues. The idea behind that is your 'default' MOH is standard
music, and your various queues can have different 'hold' music while
they're waiting.

Uploading a file

Simply select 'browse' and pick a MP3 file on your system. Then click 'Upload'. It will appear in the list of MOH files below.


Related Content


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I got error when i click 'upload'

ali.nust's picture

I downloaded mp3 file and convert it to wav(PCM, 16bit,8000Hz) and tried to

upload it on "Music on Hold" module. but it gives me following error

Error Processing: "sh: mpg123: command not found
sox: Can't open input file '/var/lib/asteriskmoh/orig_Excuse_Me_Sir.wav': No such file or directory" for Excuse_Me_Sir.mp3!
This is not a fatal error, your Music on Hold may still work.

can anybody help me


Same here

Stefano Losi's picture

I have the very same problem.
And, moreover, in the musiconhold_additional.conf file, I have such a pathname:

directory=/var/lib/asterisk//mohmp3/

Is the "//" an error ?

Another issue: when uploading files with MOH or System Recording module, it seems that they don't get the right permissions for Asterisk to play them.
I have, every time, to chmod 666 them.


Cannot choose a System Recording when creating a new MOH Categor

bobofthedeep's picture

As in the subject I cannot choose a System Recording when creating a new MOH category. I have to use sftp to download the file I recorded through the phone and re-upload it...am I missing something?

Bob


Play sequence

berkin's picture

I have FreePBX 2.7.0.6 installed.

When I add a new voice file using deault category, uploading an mp3, it is converted and added in the playlist just fine. However, I want to change the play sequence, and since I have in musiconhold_additional.conf;

[default]
mode=files
directory=/var/lib/asterisk/moh/
[none]
mode=files
directory=/var/lib/asterisk/moh/.nomusic_reserved

I assume files are played according to the filename order, I rename the files so that when I reload moh and list files, I want to see them in correct order.

However, when I list the files, they neither appear in filename order, nor (obviously) play in that order.

I don't understand how the moh play sequence is determined.

Here is what I have:

moh show files
Class: default
File: /var/lib/asterisk/moh//extraphone-welcome
File: /var/lib/asterisk/moh//manolo_camp-morning_coffee
File: /var/lib/asterisk/moh//macroform-the_simplicity
File: /var/lib/asterisk/moh//macroform-cold_day
File: /var/lib/asterisk/moh//macroform-robot_dity
File: /var/lib/asterisk/moh//reno_project-system
File: /var/lib/asterisk/moh//extraphone-tatu
Class: none
File: /var/lib/asterisk/moh/.nomusic_reserved/silence

Please comment ...


filename convention issues

squigley's picture

Hi,

Seems like there's a bug in the script to do with handling filenames like "Something [feat Someone].mp3", or containing brackets () etc.

mpg123 doesn't handle it properly, and outputs a 44 byte file with just a WAVE header, and no data after it, which sox obviously can't process.

This usually results in the mp3 being left as "orig_filename.mp3", so it can be manually converted.

I just delete the mp3 and 44 byte wav file, rename the file to not contain any non text characters, and reupload.