[asterisk-bugs] [JIRA] (ASTERISK-26353) res_musiconhold: musiconhold seems to think that the general section is a class and issues warning

Rusty Newton (JIRA) noreply at issues.asterisk.org
Fri Oct 21 16:49:01 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=232823#comment-232823 ] 

Rusty Newton commented on ASTERISK-26353:
-----------------------------------------

Yeah that is goofy. I don't think there should be a general class, plus 'directory' isn't an option for the general section.

{noformat}
[Oct 21 16:40:38] VERBOSE[32057] loader.c: Loading res_musiconhold.so.
[Oct 21 16:40:38] DEBUG[32057] config.c: Parsing /etc/asterisk/musiconhold.conf
[Oct 21 16:40:38] VERBOSE[32057] config.c: Parsing '/etc/asterisk/musiconhold.conf': Found
[Oct 21 16:40:38] WARNING[32057] res_musiconhold.c: A directory must be specified for class 'general'!
[Oct 21 16:40:38] DEBUG[32057] res_musiconhold.c: Destroying MOH class 'general'
[Oct 21 16:40:38] DEBUG[32057] res_musiconhold.c: Scanning '/var/lib/asterisk/moh' for files for class 'default'
[Oct 21 16:40:38] VERBOSE[32057] pbx_app.c: Registered application 'MusicOnHold'
[Oct 21 16:40:38] VERBOSE[32057] pbx_app.c: Registered application 'StartMusicOnHold'
[Oct 21 16:40:38] VERBOSE[32057] pbx_app.c: Registered application 'StopMusicOnHold'
[Oct 21 16:40:38] VERBOSE[32057] loader.c: res_musiconhold.so => (Music On Hold Resource)
[Oct 21 16:40:38] DEBUG[32057] loader.c: START: res_musiconhold.so                             0 0
{noformat}
After adding directory=moh2 to the general section
{noformat}
[Oct 21 16:43:20] VERBOSE[32220] loader.c: Loading res_musiconhold.so.
[Oct 21 16:43:20] DEBUG[32220] config.c: Parsing /etc/asterisk/musiconhold.conf
[Oct 21 16:43:20] VERBOSE[32220] config.c: Parsing '/etc/asterisk/musiconhold.conf': Found
[Oct 21 16:43:20] WARNING[32220] res_musiconhold.c: Unknown option 'directory' in [general] section of musiconhold.conf
[Oct 21 16:43:20] WARNING[32220] res_musiconhold.c: A mode must be specified for class 'general'!
[Oct 21 16:43:20] DEBUG[32220] res_musiconhold.c: Destroying MOH class 'general'
[Oct 21 16:43:20] DEBUG[32220] res_musiconhold.c: Scanning '/var/lib/asterisk/moh' for files for class 'default'
[Oct 21 16:43:20] VERBOSE[32220] pbx_app.c: Registered application 'MusicOnHold'
[Oct 21 16:43:20] VERBOSE[32220] pbx_app.c: Registered application 'StartMusicOnHold'
[Oct 21 16:43:20] VERBOSE[32220] pbx_app.c: Registered application 'StopMusicOnHold'
[Oct 21 16:43:20] VERBOSE[32220] loader.c: res_musiconhold.so => (Music On Hold Resource)
[Oct 21 16:43:20] DEBUG[32220] loader.c: START: res_musiconhold.so                             0 0
{noformat}

> res_musiconhold: musiconhold seems to think that the general section is a class and issues warning
> --------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-26353
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26353
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_musiconhold
>    Affects Versions: GIT
>         Environment: Asterisk GIT-14-d7d22a2 built by root on a x86_64 running Linux on 2016-09-09 15:59:12 UTC
>            Reporter: Jonathan Harris
>            Severity: Minor
>
> First report! Hope I'm doing it right - be gentle!
> In the version of 14 I pulled from GIT and compiled yesterday, I'm seeing the following ERROR warning on the console:
> [Sep 10 14:28:16] WARNING[4603]: res_musiconhold.c:1767 load_moh_classes: A directory must be specified for class 'general'!
> This is the musiconhold.conf as provided by the samples - it's seems to be thinking that the general section is a class?!
> [general]
> [default]
> mode=files
> directory=moh



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list