Page 1 of 1

Inbound (musikon hold ) did not play

PostPosted: Fri Jul 30, 2010 6:53 am
by speed
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

PostPosted: Fri Jul 30, 2010 6:55 am
by mflorell
Do you have a directory /var/lib/asterisk/default on your system?

If so, are there any audio files in it?

PostPosted: Fri Jul 30, 2010 7:35 am
by speed
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

PostPosted: Fri Jul 30, 2010 7:41 am
by mflorell
What are the contents of your musiconhold.conf and musiconhold-vicidial.conf files?

PostPosted: Fri Jul 30, 2010 7:43 am
by speed
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

reload forgott

PostPosted: Fri Jul 30, 2010 8:33 am
by speed
it works after reload ...


sorry for post ,,,:-)

speed

Re: Inbound (musikon hold ) did not play

PostPosted: Mon Nov 02, 2015 6:32 am
by udy786
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.