Solved

Asterisk

Posted on 2010-08-26
10
756 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:thinktechsolutions
ID: 33542480
bump any suggestions thanx
0
 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Backup & Restore 3 54
Run DOS2UNIX and then execute the command 21 70
linux(debian) mouse poor performance 4 39
000webhost.com default error log 1 24
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will giveā€¦
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

813 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

15 Experts available now in Live!

Get 1:1 Help Now