Music on hold not playing

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Music on hold not playing

Postby new2vici » Wed Aug 27, 2008 6:00 pm

I have setup an ingroup and campaign to accept inbound numbers. Everything works fine except it doesn't play the music on hold file. I have verified that the file it's looking for does exist in the correct folder. There are 3 files in the /var/lib/asterisk/mohmp3/ folder: fpm-calm-river.mp3, fpm-sunshine.mp3, and fpm-world-mix.mp3. All 3 files produce the same result when I change the MOH field under INGROUP. Thanks in advance for any assistant.

-- SIP/vitel-outbound-0822f820 is ringing
-- Executing Ringing("SIP/account-081fed18", "") in new stack
-- Executing Wait("SIP/account-081fed18", "1") in new stack
-- Executing Answer("SIP/account-081fed18", "") in new stack
-- Executing AGI("SIP/account-081fed18", "agi-VDAD_ALL_inbound.agi|CIDLOOKUPRC-----LB-----INTEST-----888xxxxxxx-----Closer-----park----------999-----1-----TESTIN") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
Aug 27 15:29:25 WARNING[29642]: res_musiconhold.c:640 get_mohbyname: Music on Hold class 'fpm-calm-river' not found
-- Started music on hold, class 'default', on SIP/account-081fed18
Aug 27 15:29:25 WARNING[29642]: file.c:517 ast_openstream_full: File /var/lib/asterisk/mohmp3/fpm-calm-river does not exist in any format
Aug 27 15:29:25 WARNING[29642]: res_musiconhold.c:232 ast_moh_files_next: Unable to open file '/var/lib/asterisk/mohmp3/fpm-calm-river': No such file or directory
-- Stopped music on hold on SIP/account-081fed18
new2vici
 
Posts: 11
Joined: Fri Jul 25, 2008 2:47 pm

Postby mflorell » Wed Aug 27, 2008 8:39 pm

It might not be looking for MP3 files, it might be looking for the converted files as are mentioned in the SCRATCH_INSTALL document.

What are the settings in your musiconhold.conf file?
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby new2vici » Wed Aug 27, 2008 8:56 pm

;
; Music on Hold -- Sample Configuration
;

[default]
mode=files
directory=/var/lib/asterisk/mohmp3

[quiet]
mode=files
directory=/var/lib/asterisk/quiet-mp3

; valid mode options:
; quietmp3 -- default
; mp3 -- loud
; mp3nb -- unbuffered
; quietmp3nb -- quiet unbuffered
; custom -- run a custom application
; files -- read files from a directory in any Asterisk supported format
new2vici
 
Posts: 11
Joined: Fri Jul 25, 2008 2:47 pm

Postby mflorell » Thu Aug 28, 2008 1:43 pm

Please post the "ls -l /var/lib/asterisk/mohmp3" on that system.
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby new2vici » Thu Aug 28, 2008 3:29 pm

server1:~ # ls -l /var/lib/asterisk/mohmp3
total 6598
-rw-r--r-- 1 root root 184 Jul 7 08:00 LICENSE
-rw-r--r-- 1 root root 1939812 Jul 7 08:00 fpm-calm-river.mp3
-rw-r--r-- 1 root root 2582496 Jul 7 08:00 fpm-sunshine.mp3
-rw-r--r-- 1 root root 2217563 Jul 7 08:00 fpm-world-mix.mp3
new2vici
 
Posts: 11
Joined: Fri Jul 25, 2008 2:47 pm

Postby mflorell » Thu Aug 28, 2008 4:23 pm

You need to run the conversions to create the other versions of those files.

What version of SoX do you have on your system?
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby new2vici » Thu Aug 28, 2008 5:02 pm

Got it.

sox: v13.0.0
new2vici
 
Posts: 11
Joined: Fri Jul 25, 2008 2:47 pm

Postby mflorell » Thu Aug 28, 2008 5:08 pm

sox --version
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby new2vici » Thu Aug 28, 2008 5:14 pm

sox: v13.0.0
new2vici
 
Posts: 11
Joined: Fri Jul 25, 2008 2:47 pm

Postby new2vici » Thu Aug 28, 2008 7:09 pm

Is it safe to upgrade to newer version of SoX? If so, how do I install it? I see the new version supports MP3, but the old one doesn't.
new2vici
 
Posts: 11
Joined: Fri Jul 25, 2008 2:47 pm

Postby new2vici » Thu Aug 28, 2008 7:59 pm

It doesn't seems like it's the MP3 issue. I uploaded wav and gsm files to the directory and it's still returning the same message that it can't find the file. Please help.

server1:/var/lib/asterisk/mohmp3 # ls
LICENSE fpm-sunshine.mp3 moh-default.gsm
fpm-calm-river.mp3 fpm-world-mix.mp3 moh-default.wav

Connected to Asterisk 1.2.29 currently running on server1 (pid = 3544)
Verbosity is at least 21
== Manager 'sendcron' logged off from 127.0.0.1
-- Executing Ringing("SIP/account-b7291a28", "") in new stack
-- Executing Wait("SIP/account-b7291a28", "1") in new stack
-- Executing Answer("SIP/account-b7291a28", "") in new stack
-- Executing AGI("SIP/account-b7291a28", "agi-VDAD_ALL_inbound.agi|CIDLOOKUPRC-----LB-----CQYIN-----6465551212----------park----------201-----1-----CQY") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
Aug 28 17:40:22 WARNING[12604]: res_musiconhold.c:640 get_mohbyname: Music on Hold class 'moh-default' not found
-- Started music on hold, class 'default', on SIP/account-b7291a28
Aug 28 17:40:22 WARNING[12604]: file.c:517 ast_openstream_full: File /var/lib/asterisk/mohmp3/fpm-calm-river does not exist in any format
Aug 28 17:40:22 WARNING[12604]: res_musiconhold.c:232 ast_moh_files_next: Unable to open file '/var/lib/asterisk/mohmp3/fpm-calm-river': No such file or directory
-- Stopped music on hold on SIP/account-b7291a28
-- AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
-- Executing AGI("SIP/account-b7291a28", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
new2vici
 
Posts: 11
Joined: Fri Jul 25, 2008 2:47 pm

Postby mflorell » Thu Aug 28, 2008 9:54 pm

Yes, SoX is safe to upgrade, I would recommend 14.X.

have you tried adding a "moh-default" musiconhold context? That is what it is seeming to look for, but you do not have it defined.
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby new2vici » Fri Aug 29, 2008 5:47 pm

Yes, moh-default is already defined under the IN-GROUP music on hold context field. It's still producing the same error. Any other ideas?
new2vici
 
Posts: 11
Joined: Fri Jul 25, 2008 2:47 pm

Postby new2vici » Fri Aug 29, 2008 6:04 pm

I added a class in the musiconhold.conf for [moh-default] and it's still looking for fpm-calm-river. How can I make it so it doesn't look for that file any more? It doesn't matter what I type in the IN-GROUP musiconhold context, it'll always look for fpm-calm-river.

-- Started music on hold, class 'moh-default', on SIP/account-b700be58
Aug 29 15:58:58 WARNING[24266]: file.c:517 ast_openstream_full: File /var/lib/asterisk/mohmp3/fpm-calm-river does not exist in any format
Aug 29 15:58:58 WARNING[24266]: res_musiconhold.c:232 ast_moh_files_next: Unable to open file '/var/lib/asterisk/mohmp3/fpm-calm-river': No such file or directory
-- Stopped music on hold on SIP/account-b700be58
new2vici
 
Posts: 11
Joined: Fri Jul 25, 2008 2:47 pm

Postby mflorell » Fri Aug 29, 2008 7:59 pm

I don;t really know what to suggest at this point. I have never run into this problem, and all of the things I've suggested don't seem to work for you. You might want to try posting on the digium forums, or just starting with a full SCRATCH_INSTALL installation which I know does not have this issue.
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby mcargile » Sat Aug 30, 2008 8:37 pm

That error is because you have the music on hold context in your inbound group set to the file name of the music on hold you want to play not to a context that is defined in the musiconhold.conf file.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Postby mcargile » Mon Sep 01, 2008 7:06 am

If you want a specific music file to play for music-on-hold you need to do the following:

1. Create a directory to hold just the music you want to play. Lets call it moh-default. So run
Code: Select all
mkdir /var/lib/asterisk/mohmp3/moh-default

2. Copy what ever sound file you want to have played into this directory.
3. Create an entry in your musiconhold.conf file like this:
Code: Select all
[moh-default]
mode=files
directory=/var/lib/asterisk/mohmp3/moh-default

4. Reload moh in asterisk. I generally suggest stopping and starting asterisk but this is not always possible.

You have to do this for each different music-on-hold context you want to create. Also if you want to have multiple files played for the same music-on-hold context just copy each of the files into the same directory you defined.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Postby gonzalezgjaime » Fri Oct 30, 2009 7:54 pm

i did this, and i still cant make the in group play the moh file i want, i have my own files i have tried mp3 and wav and none have been able to work.

Any ideas??, thanks for the help.
gonzalezgjaime
 
Posts: 61
Joined: Wed Nov 19, 2008 7:08 pm

Postby williamconley » Sat Oct 31, 2009 12:41 am

Please post your complete setup when you ask a question, especially when it refers to a specific problem such as this. If you do, it is much more likely that someone who recognizes it will be able to help you out. So post your Vicidial version (with build), Asterisk version and your installation method (including OS with version), any Other Software that may be installed in the box. Hardware would be nice as well (CPU Brand Model and speed, RAM, HD, and it's a good idea to name your Motherboard and NIC if you can).

If you put this information into your signature (on one line) you can forget about it until it changes and it will ALWAYS be available for those looking at your questions.

Remember that we are all volunteers here, and sometimes we only have time to glance at a question and if it doesn't "click", we move on. Give more technical background information, and you're more likely to get a "click".
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # 888-883-8488 # +44(203) 769-2294
williamconley
 
Posts: 20427
Joined: Wed Oct 31, 2007 4:17 pm
Location: Bartow, FL (In the boondocks)


Return to Support

Who is online

Users browsing this forum: No registered users and 90 guests