Inbound (musikon hold ) did not play

All installation and configuration problems and questions

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

Inbound (musikon hold ) did not play

Postby speed » Fri Jul 30, 2010 6:53 am

hello,

i configure an inbound campain. but there some problems at the moment.,.



[Jul 30 13:40:29] WARNING[15119]: res_musiconhold.c:669 get_mohbyname: Music on Hold class 'default' not found
[Jul 30 13:40:29] WARNING[15119]: res_musiconhold.c:621 moh1_exec: Unable to start music on hold for 5 seconds on channel SIP/SIPtrunk-0000003b
[Jul 30 13:40:29] -- Executing [**********@trunkinbound:3] AGI("SIP/SIPtrunk-0000003b", "agi-VDAD_ALL_inbound.agi|CIDLOOKUP-----LB-----new-----******-----Closer-----park----------999-----1") in new stack
[Jul 30 13:40:29] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
[Jul 30 13:40:29] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 30 13:40:29] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 30 13:40:31] WARNING[15119]: res_musiconhold.c:669 get_mohbyname: Music on Hold class 'default' not found
[Jul 30 13:40:31] WARNING[15119]: res_musiconhold.c:669 get_mohbyname: Music on Hold class 'default' not found
[Jul 30 13:40:35] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jul 30 13:40:35] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
0 13:40:35] -- Playing 'test1' (escape_digits=) (sample_offset 0)



the inbound config


exten => _X.,1,Answer
;exten => _X.,n,Set(MUSICCLASS()=default)
exten => _X.,n,WaitMusicOnHold(5)
exten => _X.,n,AGI(agi-VDAD_ALL_inbound.agi,CIDLOOKUP-----LB-----new-----*********-----Closer-----park----------999-----1)
exten => _X.,n,Hangup




i work with the latest vicibox redux

VERSION: 2.4-265
BUILD: 100723-1519

did any one know why the onholdmusik didnt play ?

thx for help !!

speed
Last edited by speed on Fri Jul 30, 2010 7:35 am, edited 1 time in total.
speed
 
Posts: 71
Joined: Wed Apr 01, 2009 2:25 pm

Postby mflorell » Fri Jul 30, 2010 6:55 am

Do you have a directory /var/lib/asterisk/default on your system?

If so, are there any audio files in it?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby speed » Fri Jul 30, 2010 7:35 am

hello matt,

yes i make the direktory .. and put one file into this dir..

i copy the macroform-the_simplicity.gsm into this dir,,

but without success...

what kind of files i must take ? mp3 ? gsm ? wav, or is no difference ?


thank speed
speed
 
Posts: 71
Joined: Wed Apr 01, 2009 2:25 pm

Postby mflorell » Fri Jul 30, 2010 7:41 am

What are the contents of your musiconhold.conf and musiconhold-vicidial.conf files?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby speed » Fri Jul 30, 2010 7:43 am

musiconhold-vicidial


; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST
; Default Music On Hold
[default]
mode=files
directory=/var/lib/asterisk/default



; END OF FILE


musiconhold

;
; Music on Hold -- Sample Configuration
;

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

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

#include musiconhold-vicidial.conf

; 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


this one !!

thanx
speed
 
Posts: 71
Joined: Wed Apr 01, 2009 2:25 pm

reload forgott

Postby speed » Fri Jul 30, 2010 8:33 am

it works after reload ...


sorry for post ,,,:-)

speed
speed
 
Posts: 71
Joined: Wed Apr 01, 2009 2:25 pm

Re: Inbound (musikon hold ) did not play

Postby udy786 » Mon Nov 02, 2015 6:32 am

Today I got same error on a client's server when I configured Inbound. I did below modification in /etc/asterisk/musiconhold.conf:

Changed the following entry:-

Code: Select all
[old-default]
mode=files
directory=/var/lib/asterisk/mohmp3


TO

Code: Select all
[default]
mode=files
directory=/var/lib/asterisk/mohmp3



Thanks.
udy786
 
Posts: 148
Joined: Fri Jul 19, 2013 10:55 am


Return to Support

Who is online

Users browsing this forum: No registered users and 116 guests