Summary: | ASTERISK-05618: res_musiconhold.c: Music on Hold class 'default' already exists | ||
Reporter: | Pedro Tomas (tracinet) | Labels: | |
Date Opened: | 2005-11-16 08:24:05.000-0600 | Date Closed: | 2008-01-15 15:56:22.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Resources/res_musiconhold |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20051116__moh_errormsg.diff.txt | |
Description: | I just installed asterisk 1.2 rc2 on a Fedora Core 1 box running kernel 2.4.22-1.2199.5.legacy.nptlsmp and ran a 'make samples'. Asterisk starts just fine with no errors in the logs. However, if I issue a reload I get the following: Nov 15 17:08:22 WARNING[27009] res_musiconhold.c: Music on Hold class 'default' already exists I am not sure how this works but it almost seems like when a reload is issued, musiconhold is reloaded without first stopping the previous process. Hope this makes sense. Let me know if you need more info. ****** ADDITIONAL INFORMATION ****** musiconhold.conf is the default sample file: ; ; Music on Hold -- Sample Configuration ; [default] mode=quietmp3 directory=/var/lib/asterisk/mohmp3 ; valid mode options: ; quietmp3 -- default ; mp3 -- loud ; mp3nb -- unbuffered ; quietmp3nb -- quiet unbuffered ; custom -- run a custom application ; files -- read files from a directory in any Asterisk supported format ;[manual] ;mode=custom ; Note that with mode=custom, a directory is not required, such as when reading ; from a stream. ;directory=/var/lib/asterisk/mohmp3 ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s ;[ulawstream] ;mode=custom ;application=/usr/bin/streamplayer 192.168.100.52 888 ;format=ulaw ; mpg123 on Solaris does not always exit properly; madplay may be a better ; choice ;[solaris] ;mode=custom ;directory=/var/lib/asterisk/mohmp3 ;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12 ; ; ; File-based (native) music on hold ; ; This plays files directly from the specified directory, no external ; processes are required. Files are played in normal sorting order ; (same as a sorted directory listing), and no volume or other ; sound adjustments are available. If the file is available in ; the same format as the channel's codec, then it will be played ; without transcoding (same as Playback would do in the dialplan). ; Files can be present in as many formats as you wish, and the ; 'best' format will be chosen at playback time. ; ; NOTE: ; If you are not using "autoload" in modules.conf, then you ; must ensure that the format modules for any formats you wish ; to use are loaded _before_ res_musiconhold. If you do not do ; this, res_musiconhold will skip the files it is not able to ; understand when it loads. ; ;[native] ;mode=files ;directory=/var/lib/asterisk/moh-native ; ;[native-random] ;mode=files ;directory=/var/lib/asterisk/moh-native ;random=yes ; Play the files in a random order | ||
Comments: | By: Kevin P. Fleming (kpfleming) 2005-11-16 12:58:34.000-0600 Committed to CVS HEAD, thanks! By: Digium Subversion (svnbot) 2008-01-15 15:56:22.000-0600 Repository: asterisk Revision: 7116 U trunk/ChangeLog U trunk/res/res_musiconhold.c ------------------------------------------------------------------------ r7116 | kpfleming | 2008-01-15 15:56:22 -0600 (Tue, 15 Jan 2008) | 2 lines issue ASTERISK-5618 ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=7116 |