<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Helvetica, Arial, sans-serif">Hello<br>
      <br>
      I did not mention it but of course the MOH directory is listed in
      /etc/asterisk/musiconhold.conf :<br>
      <br>
      [default]<br>
      mode=files<br>
      directory=/var/lib/asterisk/moh<br>
      <br>
      [</font><wbr><font face="Helvetica, Arial, sans-serif">myfolder_1]<br>
      mode=files<br>
      directory=/var/lib/asterisk/moh/</font><wbr><font face="Helvetica,
      Arial, sans-serif">myfolder/1<br>
      sort=alpha</font><br>
    <br>
    <font face="Helvetica, Arial, sans-serif">[</font><wbr><font
      face="Helvetica, Arial, sans-serif">myfolder_2]<br>
      mode=files<br>
      directory=/var/lib/asterisk/moh/</font><font face="Helvetica,
      Arial, sans-serif">myfolder/2<br>
      sort=alpha<br>
      <br>
    </font><font face="Helvetica, Arial, sans-serif">[</font><wbr><font
      face="Helvetica, Arial, sans-serif">myfolder_3]<br>
      mode=files<br>
      directory=/var/lib/asterisk/moh/</font><font face="Helvetica,
      Arial, sans-serif">myfolder/3<br>
      sort=alpha<br>
      <br>
      <br>
      No mather where I put the new file, it is never listed.<br>
      <br>
      Untill a full restart of Asterisk ! Then it is listed. But is
      there no other way to load/read a new MOH file than to completely
      restart Asterisk ??<br>
      <br>
      <br>
      After Asterisk restart :<br>
      <br>
    </font><font face="Helvetica, Arial, sans-serif"><font
        face="Helvetica, Arial, sans-serif">myserver</font>*CLI> moh
      show files <br>
      Class: default<br>
          File: /var/lib/asterisk/moh/reno_project-system<br>
          File: /var/lib/asterisk/moh/macroform-the_simplicity<br>
          File: /var/lib/asterisk/moh/manolo_camp-morning_coffee<br>
          File: /var/lib/asterisk/moh/macroform-robot_dity<br>
          File: /var/lib/asterisk/moh/macroform-cold_day<br>
      Class: </font><font face="Helvetica, Arial, sans-serif"><font
        face="Helvetica, Arial, sans-serif"><wbr>myfolder</font>_1<br>
          File: /var/lib/asterisk/moh/</font><font face="Helvetica,
      Arial, sans-serif"><font face="Helvetica, Arial, sans-serif"><wbr>myfolder</font>/1/</font><font
      face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial,
        sans-serif">macroform-the_<wbr>simplicity</font><br>
      <br>
      <br>
      <br>
      Kind regards.<br>
      <br>
    </font><wbr><wbr><br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 03-03-17 18:26, John Kiniston wrote:<br>
    </div>
    <blockquote
cite="mid:CAFJQOGfuBj9p=bZQdTzP9T+Z9hfv6S0cCkUuOBu1osqRWoZ0eA@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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
              moz-do-not-send="true"
              href="https://community.asterisk.org/" rel="noreferrer"
              target="_blank">https://community.asterisk.<wbr>org/</a><br>
            <br>
            New to Asterisk? Start here:<br>
                  <a moz-do-not-send="true"
              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 moz-do-not-send="true"
              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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>