<div dir="ltr">Your new file is in the '<span style="font-family:helvetica,arial,sans-serif;font-size:12.8px">myfolder/1'' subdirectory of the MOH directory. </span><div><span style="font-family:helvetica,arial,sans-serif;font-size:12.8px"><br></span></div><div><span style="font-family:helvetica,arial,sans-serif;font-size:12.8px">Either move the file into the MOH directory or define a new class in musiconhold.conf that is for your directory.</span></div><div><span style="font-family:helvetica,arial,sans-serif;font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 3, 2017 at 7:19 AM, Jonas Kellens <span dir="ltr"><<a href="mailto:jonas.kellens@telenet.be" target="_blank">jonas.kellens@telenet.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hello<br>
<br>
using Asterisk 1.8.32.3<br>
<br>
Current music on hold :<br>
<br>
myserver*CLI> moh show files<br>
Class: default<br>
File: /var/lib/asterisk/moh/<wbr>macroform-robot_dity<br>
File: /var/lib/asterisk/moh/<wbr>macroform-cold_day<br>
File: /var/lib/asterisk/moh/reno_<wbr>project-system<br>
File: /var/lib/asterisk/moh/manolo_<wbr>camp-morning_coffee<br>
File: /var/lib/asterisk/moh/<wbr>macroform-the_simplicity<br>
<br>
New musiconhold file :<br>
<br>
[root@myserver ]# file
/var/lib/asterisk/moh/<wbr>myfolder/1/macroform-the_<wbr>simplicity.wav <br>
/var/lib/asterisk/moh/<wbr>myfolder/1/macroform-the_<wbr>simplicity.wav:
RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono
8000 Hz<br>
<br>
I issue a reload of the moh :<br>
<br>
myserver*CLI> moh reload <br>
myserver*CLI> module reload res_musiconhold.so <br>
[Mar 3 15:04:53] -- Reloading module 'res_musiconhold.so'
(Music On Hold Resource)<br>
<br>
Situation after reload :<br>
<br>
myserver*CLI> moh show files<br>
Class: default<br>
File: /var/lib/asterisk/moh/<wbr>macroform-robot_dity<br>
File: /var/lib/asterisk/moh/<wbr>macroform-cold_day<br>
File: /var/lib/asterisk/moh/reno_<wbr>project-system<br>
File: /var/lib/asterisk/moh/manolo_<wbr>camp-morning_coffee<br>
File: /var/lib/asterisk/moh/<wbr>macroform-the_simplicity<br>
<br>
<br>
Even a complete 'module reload' on Asterisk CLI does nothing :<br>
<br>
</font><font face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial, sans-serif">myserver</font>*CLI>
module reload <br>
[Mar 3 15:13:54] == Parsing '/etc/asterisk/extconfig.conf'<wbr>:
[Mar 3 15:13:54] == Found<br>
[Mar 3 15:13:54] == Parsing '/etc/asterisk/logger.conf': [Mar
3 15:13:54] == Found<br>
...<br>
[Mar 3 15:13:54] -- Reloading module 'res_musiconhold.so'
(Music On Hold Resource)<br>
...<br>
<br>
</font><br>
<font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif">Situation after reload :<br>
<br>
</font>myserver*CLI> moh show files<br>
Class: default<br>
File: /var/lib/asterisk/moh/<wbr>macroform-robot_dity<br>
File: /var/lib/asterisk/moh/<wbr>macroform-cold_day<br>
File: /var/lib/asterisk/moh/reno_<wbr>project-system<br>
File: /var/lib/asterisk/moh/manolo_<wbr>camp-morning_coffee<br>
File: /var/lib/asterisk/moh/<wbr>macroform-the_simplicity<br>
<br>
<br>
<br>
So, reloading musiconhold does not reload/read musiconhold files.<br>
<br>
<br>
How to read/load new musiconhold files into asterisk ??<br>
<br>
<br>
Kind regards.<br>
<br>
<br>
</font>
</div>
<br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.<wbr>org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</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" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div>
</div>