Solved

Asterisk

Posted on 2010-08-26
10
753 Views
Last Modified: 2013-12-21
I currently have an asterisk server version 1.4 for my house and I would like to use mp3 for music on hold I tried to copy mp3 to my moh directory and that is not working do I need a special license to play mp3 for hold music please let me know thank you.
0
Comment
Question by:thinktechsolutions
  • 7
  • 2
10 Comments
 

Author Comment

by:thinktechsolutions
ID: 33538449
I like to add is there some guidelines as far how much how long the song can be also how big the song can be. Any specif bit rates and tags or non tags that need to be included. If somebody could provide me with a quick step by step on how to install mp3 music on hold that would be awesome thanx
0
 
LVL 7

Expert Comment

by:nauliv
ID: 33538496
The most simple way to get around this would be to convert your mp3 to wav file.
The format is 8000Hz / 16-bit / linear / mono.
This will also make it easier on the processor.
0
 

Author Comment

by:thinktechsolutions
ID: 33538525
any program you would recommend. What is the licenses file I keep hearing about in order to use mp3s. So probally the reason my mp3 are not working is because they are full 320kbs quality mp3 that are around 2-3 minutes some maybe even longer does that matter
0
 

Author Comment

by:thinktechsolutions
ID: 33542480
bump any suggestions thanx
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:thinktechsolutions
ID: 33543348
I've tried coverting the file to wav with the specification you recommend and it still is not playing. Is there a time limit and also is there a size limit. I new to the asterisk server and had somebody else set it up for me. I can no longer get ahold of that person. in the moh folder there are 2 files one says LICENSE-asterisk-moh-freeplay.wav the other one says .asterisk-moh-freeplay.wav. Do I need to change those file are do I need to add any new files thank you
0
 
LVL 7

Accepted Solution

by:
nauliv earned 500 total points
ID: 33545015
Thinktech,


For converting your audio files from MP3 to WAV 8000Hz/16-bit/linear/mono, you can use:
* Under windows:  
  - Audacity (freeware) http://audacity.sourceforge.net/
  - Wavepad (free trial) http://www.nch.com.au/wavepad/index.html

* Under linux, you can use mpg123 and sox, with the following command line:
mpg123 -b 10000 -s your-mp3-file.mp3 | sox -t raw -r 8000 -s -c 1 -w your-wav-file.wav
(if sox or mpg123 is not present on your box, you may download them through your package manager, or compile from source)

With regards to using the sound files provided with asterisk, make sure that the /etc/asterisk/musiconhold.conf file is present.
Inside this configuration file,  you'll find a [default] section and the keyword "directory" indicating where the files need to be located.
For example:

    [default]
    mode=files
    directory=/var/lib/asterisk/moh/default
    sort=random


Hope it helps!
0
 

Author Comment

by:thinktechsolutions
ID: 33545187
Thank you for getting back to me. I do have the config file and the moh directory the file the music is located and in the MOH it still will not play. I have tried converting it to wav and also mp3 by downgrading the mp3 file. Is there any special licensing that I need to know of for instance I would like to put an eagles song on my music on hold it does have some vocals to it and its around 3-4 minute would there be any problem having the song for music on hold thank you. are anything I need to do like purchase a licenses or upgrade to a different program.
0
 

Author Comment

by:thinktechsolutions
ID: 33548197
Nevermind I for some reason I had to restart the asterisk server twice and it finally took the wav files thank you
0
 

Author Closing Comment

by:thinktechsolutions
ID: 33652984
Thank you forgot to close the questions
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now