[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Asterisk

Posted on 2010-08-26
10
Medium Priority
?
761 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
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…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

650 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