Give that moh1 directory permissions, I once had similar issue that same files being placed in default moh directory were played but making a new call and directory couldn't play anything. So I fixed that by granting directory permissions.<div>
<br><br><div class="gmail_quote">On Wed, Oct 5, 2011 at 2:25 PM, salaheddine elharit <span dir="ltr"><<a href="mailto:salah.elharit200@gmail.com">salah.elharit200@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr"><div>Hi </div>
<div> </div>
<div>yes i have noticed the same result when i play a file like the default i can hear the music but when i play another file there is no sound</div>
<div> </div>
<div>about your question danny :yes i have created a file in /var/lib/asterisk/moh1</div>
<div> </div>
<div>and i configure in musiconhold.conf like below</div>
<div> </div>
<div>[default1]<br>mode=files<br>directory=/var/lib/asterisk/moh1<br><br></div>
<div class="gmail_quote">2011/10/4 Kevin Oravits <span dir="ltr"><<a href="mailto:koravits@rcolegal.com" target="_blank">koravits@rcolegal.com</a>></span><br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><div><div></div><div class="h5">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><span style="color:#1f497d;font-size:11pt">I’ve noticed on our system the sound files have to be in an exact format for Asterisk to play them. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d;font-size:11pt">Bit Rate: 128kbps<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d;font-size:11pt">Audio sample size: 16 bit<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d;font-size:11pt">Channels: 1(mono)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d;font-size:11pt">Audio Sample rate: 8kHz<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d;font-size:11pt">Audio format: PCM<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d;font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d;font-size:11pt">I actually downloaded a program and remixed the audio files to match these settings. Before that, I couldn’t get my Asterisk to play any non-standard music.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d;font-size:11pt"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><b><span style="color:#333333;font-size:10pt">Kevin Oravits </span></b><span style="color:#1f497d;font-size:11pt"><u></u><u></u></span></p></div>
<p class="MsoNormal"><span style="color:#1f497d;font-size:11pt"><u></u> <u></u></span></p>
<div>
<div style="border-bottom:medium none;border-left:medium none;padding-bottom:0in;padding-left:0in;padding-right:0in;border-top:#b5c4df 1pt solid;border-right:medium none;padding-top:3pt">
<p class="MsoNormal"><b><span style="font-size:10pt">From:</span></b><span style="font-size:10pt"> Danny Nicholas [mailto:<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>] <br><b>Sent:</b> Tuesday, October 04, 2011 11:48 AM
</span></p><div><br><b>To:</b> 'Asterisk Users Mailing List - Non-Commercial Discussion'<br></div><b>Subject:</b> Re: [asterisk-users] music on hold<u></u><u></u>
<p></p><p></p></div></div>
<div>
<div></div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">You have files in /var/lib/asterisk/moh1?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>From:</b> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>salaheddine elharit<br>
<b>Sent:</b> Tuesday, October 04, 2011 12:49 PM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> [asterisk-users] music on hold<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p>i configure new music on hold like below in order to play music for outbond calls<u></u><u></u></p>
<p>i want tp play a music until answer form customer<u></u><u></u></p>
<p>[default1]<br>mode=files<br>directory=/var/lib/asterisk/moh1<u></u><u></u></p>
<p>exten => 0678XXXXXX,1,Set(CALLERID(number)=520XXXXXX)<br>exten => 0678XXXXXX,n,MixMonitor(zap_g1_${EXTEN}_${UNIQUEID}.wav|av(0}V(0))<br>exten => 0678XXXXXX,n,Dial(Zap/g1/${EXTEN},,m(default1))<br>exten => 0678XXXXXX,n,Hangup()<u></u><u></u></p>
<p><br>when i put the default music i can listen without issue but when i put another music .wav Or gsm or Mp3<u></u><u></u></p>
<div>
<p class="MsoNormal">there is no music there is just the ringing<u></u><u></u></p></div>
<div>
<p class="MsoNormal"> <u></u><u></u></p></div></div></div></div></div></div></div><br></div></div>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>