?
Solved

Asterisk

Posted on 2010-08-26
10
Medium Priority
?
760 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

 

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 2000 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

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

770 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