<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>
      as you can read in my original post "moh reload" and "module
      reload res_musiconhold.so" does nothing.<br>
      <br>
      Only at restart the new files are available.<br>
      <br>
      Is this a bug ?? How can I get more debugging for this problem ??<br>
      <br>
      <br>
      <br>
      Kind regards.<br>
    </font><br>
    <br>
    <div class="moz-cite-prefix">On 23-03-17 22:54, Administrator TOOTAI
      wrote:<br>
    </div>
    <blockquote
      cite="mid:9a2af112-5a19-6283-a239-569edb7ad5d5@tootai.net"
      type="cite">Le 23/03/2017 à 20:17, Jonas Kellens a écrit :
      <br>
      <blockquote type="cite" style="color: #000000;">Hello
        <br>
        <br>
        <br>
        is there any more information on how to reload/read musiconhold
        files ?
        <br>
      </blockquote>
      <br>
      CLI> module reload res_musiconhold
      <br>
      <br>
      <div class="moz-txt-sig"><span class="moz-txt-tag">-- <br>
        </span>Daniel
        <br>
        <br>
        <blockquote type="cite" style="color: #000000;">On 07-03-17
          10:46, Jonas Kellens wrote:
          <br>
          <blockquote type="cite" style="color: #000000;">Hello
            <br>
            <br>
            I did not mention it but of course the MOH directory is
            listed in
            <br>
            /etc/asterisk/musiconhold.conf :
            <br>
            <br>
            [default]
            <br>
            mode=files
            <br>
            directory=/var/lib/asterisk/moh
            <br>
            <br>
            [myfolder_1]
            <br>
            mode=files
            <br>
            directory=/var/lib/asterisk/moh/myfolder/1
            <br>
            sort=alpha
            <br>
            <br>
            [myfolder_2]
            <br>
            mode=files
            <br>
            directory=/var/lib/asterisk/moh/myfolder/2
            <br>
            sort=alpha
            <br>
            <br>
            [myfolder_3]
            <br>
            mode=files
            <br>
            directory=/var/lib/asterisk/moh/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
            <br>
            other way to load/read a new MOH file than to completely
            restart
            <br>
            Asterisk ??
            <br>
            <br>
            <br>
            After Asterisk restart :
            <br>
            <br>
            myserver*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: myfolder_1
            <br>
                File:
            /var/lib/asterisk/moh/myfolder/1/macroform-the_simplicity
            <br>
            <br>
            <br>
            <br>
            Kind regards.
            <br>
            <br>
            <br>
            <br>
            <br>
            On 03-03-17 18:26, John Kiniston wrote:
            <br>
            <blockquote type="cite" style="color: #000000;">Your new
              file is in the 'myfolder/1'' subdirectory of the MOH
              <br>
              directory.
              <br>
              <br>
              Either move the file into the MOH directory or define a
              new class in
              <br>
              musiconhold.conf that is for your directory.
              <br>
              <br>
              <br>
              On Fri, Mar 3, 2017 at 7:19 AM, Jonas Kellens
              <br>
              <<a moz-do-not-send="true"
                class="moz-txt-link-abbreviated"
                href="mailto:jonas.kellens@telenet.be">jonas.kellens@telenet.be</a>
              <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
                href="mailto:jonas.kellens@telenet.be"><mailto:jonas.kellens@telenet.be></a>>
              wrote:
              <br>
              <br>
                  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/macroform-robot_dity
              <br>
                      File: /var/lib/asterisk/moh/macroform-cold_day
              <br>
                      File: /var/lib/asterisk/moh/reno_project-system
              <br>
                      File:
              /var/lib/asterisk/moh/manolo_camp-morning_coffee
              <br>
                      File:
              /var/lib/asterisk/moh/macroform-the_simplicity
              <br>
              <br>
                  New musiconhold file :
              <br>
              <br>
                  [root@myserver ]# file
              <br>
                 
              /var/lib/asterisk/moh/myfolder/1/macroform-the_simplicity.wav
              <br>
                 
              /var/lib/asterisk/moh/myfolder/1/macroform-the_simplicity.wav:
              <br>
                  RIFF (little-endian) data, WAVE audio, Microsoft PCM,
              16 bit,
              <br>
                  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'
              <br>
                  (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/macroform-robot_dity
              <br>
                      File: /var/lib/asterisk/moh/macroform-cold_day
              <br>
                      File: /var/lib/asterisk/moh/reno_project-system
              <br>
                      File:
              /var/lib/asterisk/moh/manolo_camp-morning_coffee
              <br>
                      File:
              /var/lib/asterisk/moh/macroform-the_simplicity
              <br>
              <br>
              <br>
                  Even a complete 'module reload' on Asterisk CLI does
              nothing :
              <br>
              <br>
                  myserver*CLI> module reload
              <br>
                  [Mar  3 15:13:54]   == Parsing
              '/etc/asterisk/extconfig.conf':
              <br>
                  [Mar  3 15:13:54]   == Found
              <br>
                  [Mar  3 15:13:54]   == Parsing
              '/etc/asterisk/logger.conf': [Mar
              <br>
                  3 15:13:54]   == Found
              <br>
                  ...
              <br>
                  [Mar  3 15:13:54]     -- Reloading module
              'res_musiconhold.so'
              <br>
                  (Music On Hold Resource)
              <br>
                  ...
              <br>
              <br>
              <br>
                  Situation after reload :
              <br>
              <br>
                  myserver*CLI> moh show files
              <br>
                  Class: default
              <br>
                      File: /var/lib/asterisk/moh/macroform-robot_dity
              <br>
                      File: /var/lib/asterisk/moh/macroform-cold_day
              <br>
                      File: /var/lib/asterisk/moh/reno_project-system
              <br>
                      File:
              /var/lib/asterisk/moh/manolo_camp-morning_coffee
              <br>
                      File:
              /var/lib/asterisk/moh/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>
              <br>
                  --
              <br>
                 
              _____________________________________________________________________
              <br>
                  -- Bandwidth and Colocation Provided by <a
                moz-do-not-send="true" class="moz-txt-link-freetext"
                href="http://www.api-digital.com">http://www.api-digital.com</a>
              --
              <br>
              <br>
                  Check out the new Asterisk community forum at:
              <br>
                  <a moz-do-not-send="true"
                class="moz-txt-link-freetext"
                href="https://community.asterisk.org/">https://community.asterisk.org/</a>
              <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
                href="https://community.asterisk.org/"><https://community.asterisk.org/></a>
              <br>
              <br>
                  New to Asterisk? Start here:
              <br>
                        <a moz-do-not-send="true"
                class="moz-txt-link-freetext"
                href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a>
              <br>
                  <a moz-do-not-send="true"
                class="moz-txt-link-rfc2396E"
                href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started"><https://wiki.asterisk.org/wiki/display/AST/Getting+Started></a>
              <br>
              <br>
                  asterisk-users mailing list
              <br>
                  To UNSUBSCRIBE or update options visit:
              <br>
                     <a moz-do-not-send="true"
                class="moz-txt-link-freetext"
                href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
              <br>
                  <a moz-do-not-send="true"
                class="moz-txt-link-rfc2396E"
                href="http://lists.digium.com/mailman/listinfo/asterisk-users"><http://lists.digium.com/mailman/listinfo/asterisk-users></a>
              <br>
              <br>
              <br>
              <br>
              <br>
              --
              <br>
              A human being should be able to change a diaper, plan an
              invasion,
              <br>
              butcher a hog, conn a ship, design a building, write a
              sonnet,
              <br>
              balance accounts, build a wall, set a bone, comfort the
              dying, take
              <br>
              orders, give orders, cooperate, act alone, solve
              equations, analyze a
              <br>
              new problem, pitch manure, program a computer, cook a
              tasty meal,
              <br>
              fight efficiently, die gallantly. Specialization is for
              insects.
              <br>
              ---Heinlein
              <br>
              <br>
              <br>
            </blockquote>
            <br>
            <br>
            <br>
          </blockquote>
          <br>
          <br>
          <br>
        </blockquote>
        <br>
        -- <br>
_____________________________________________________________________
        <br>
        -- Bandwidth and Colocation Provided by <a
          moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://www.api-digital.com">http://www.api-digital.com</a>
        --
        <br>
        <br>
        Check out the new Asterisk community forum at: <a
          moz-do-not-send="true" class="moz-txt-link-freetext"
          href="https://community.asterisk.org/">https://community.asterisk.org/</a>
        <br>
        <br>
        New to Asterisk? Start here:
        <br>
             <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a>
        <br>
        <br>
        asterisk-users mailing list
        <br>
        To UNSUBSCRIBE or update options visit:
        <br>
          <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>