Solved

Asterisk

Posted on 2010-08-26
10
758 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Migrating a Linux server to VMware 3 112
programming a polycom voip phone 3 56
UM7 Stop Sending packets with GPS Sensor 1 21
check the file dates in unix 14 29
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

733 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