[asterisk-users] moh reload not reloading/reading new musiconhold files

John Kiniston johnkiniston at gmail.com
Fri Mar 3 11:26:45 CST 2017


Your new file is in the 'myfolder/1'' subdirectory of the MOH directory.

Either move the file into the MOH directory or define a new class in
musiconhold.conf that is for your directory.


On Fri, Mar 3, 2017 at 7:19 AM, Jonas Kellens <jonas.kellens at telenet.be>
wrote:

> Hello
>
> using Asterisk 1.8.32.3
>
> Current music on hold :
>
> myserver*CLI> moh show files
> Class: default
>     File: /var/lib/asterisk/moh/macroform-robot_dity
>     File: /var/lib/asterisk/moh/macroform-cold_day
>     File: /var/lib/asterisk/moh/reno_project-system
>     File: /var/lib/asterisk/moh/manolo_camp-morning_coffee
>     File: /var/lib/asterisk/moh/macroform-the_simplicity
>
> New musiconhold file :
>
> [root at myserver ]# file /var/lib/asterisk/moh/myfolder/1/macroform-the_simplicity.wav
>
> /var/lib/asterisk/moh/myfolder/1/macroform-the_simplicity.wav: RIFF
> (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
>
> I issue a reload of the moh :
>
> myserver*CLI> moh reload
> myserver*CLI> module reload res_musiconhold.so
> [Mar  3 15:04:53]     -- Reloading module 'res_musiconhold.so' (Music On
> Hold Resource)
>
> Situation after reload :
>
> myserver*CLI> moh show files
> Class: default
>     File: /var/lib/asterisk/moh/macroform-robot_dity
>     File: /var/lib/asterisk/moh/macroform-cold_day
>     File: /var/lib/asterisk/moh/reno_project-system
>     File: /var/lib/asterisk/moh/manolo_camp-morning_coffee
>     File: /var/lib/asterisk/moh/macroform-the_simplicity
>
>
> Even a complete 'module reload' on Asterisk CLI does nothing :
>
> myserver*CLI> module reload
> [Mar  3 15:13:54]   == Parsing '/etc/asterisk/extconfig.conf': [Mar  3
> 15:13:54]   == Found
> [Mar  3 15:13:54]   == Parsing '/etc/asterisk/logger.conf': [Mar  3
> 15:13:54]   == Found
> ...
> [Mar  3 15:13:54]     -- Reloading module 'res_musiconhold.so' (Music On
> Hold Resource)
> ...
>
>
> Situation after reload :
>
> myserver*CLI> moh show files
> Class: default
>     File: /var/lib/asterisk/moh/macroform-robot_dity
>     File: /var/lib/asterisk/moh/macroform-cold_day
>     File: /var/lib/asterisk/moh/reno_project-system
>     File: /var/lib/asterisk/moh/manolo_camp-morning_coffee
>     File: /var/lib/asterisk/moh/macroform-the_simplicity
>
>
>
> So, reloading musiconhold does not reload/read musiconhold files.
>
>
> How to read/load new musiconhold files into asterisk ??
>
>
> Kind regards.
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
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.
---Heinlein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170303/80c5b848/attachment.html>


More information about the asterisk-users mailing list