Hi,<div><br></div><div>Few days ago, my asterisk began to stop unexpectedly</div><div><br></div><div>What I did:</div><div><ul><li>Added a mp3 to the musiconhold directory</li></ul><ul><li>Adjusted the permissions (chown asterisk:asterisk + chmod 755)</li>
<li>Reconfigured the musiconhold.conf to the deprecated format (found the example on the internet)</li></ul><div><span class="Apple-style-span" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; "><pre style="font-family: monospace !important; text-align: left; font-size: 1.1em; overflow-x: auto; overflow-y: auto; ">
<code style="font-family: monospace !important; text-align: left; font-size: 1.1em; ">[classes]
default => quietmp3:/etc/asterisk/moh,r</code></pre></span></div><ul><li>Restarted the service</li></ul></div><div>I thought the new mp3 was corrupted so I removed it from the server.</div><div><br></div><div>The problem perssisted so yesterday I changed the deprecated configuration to:</div>
<div><div><font class="Apple-style-span" face="'courier new', monospace">[default]</font></div><div><font class="Apple-style-span" face="'courier new', monospace">mode=quietmp3</font></div><div><font class="Apple-style-span" face="'courier new', monospace">directory=/etc/asterisk/moh</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">random=yes</font></div></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">My original configuration was:</font></div>
<div><div><font class="Apple-style-span" face="'courier new', monospace">[default]</font></div><div><font class="Apple-style-span" face="'courier new', monospace">mode=files</font></div><div><font class="Apple-style-span" face="'courier new', monospace">directory=/etc/asterisk/moh</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div></div><div><font class="Apple-style-span" face="'courier new', monospace">I have no logs telling me thate quietmp3 failed and I cannot find any way to see if the musiconhold was enabled when asterisk dropped.</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">Here are my questions (finally):</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Do you know if quietmp3 may kill the server?</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Is there a way to set random in "files" mode?</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">I am using Asterisk 1.4.17~dfsg-2ubuntu1.1 on an Ubuntu 8.04.4 server.</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">Thank you very much</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div><div>-------<br>Alexandre Vézina<br>
</div>