[asterisk-bugs] [Asterisk 0017856]: Defining different moh-classes, but always using "default"

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 13 07:29:49 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17856 
====================================================================== 
Reported By:                jonaskellens
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17856
Category:                   Resources/res_musiconhold
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           Older 1.4 - please test a newer version 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-08-13 07:29 CDT
Last Modified:              2010-08-13 07:29 CDT
====================================================================== 
Summary:                    Defining different moh-classes, but always using
"default"
Description: 
Hello,

my musiconhold.conf file :

[default]
mode=files
directory=/var/lib/asterisk/moh
random=yes
;
[106002]
mode=files
directory=/var/lib/asterisk/moh/106002
random=yes

Using realtime sip peers, all peers have the field 'musiconhold' with the
value '106002'


Restarted asterisk.


asterisk*CLI> moh show classes
Class: default
    Mode: files
    Directory: /var/lib/asterisk/moh
Class: 106002
    Mode: files
    Directory: /var/lib/asterisk/moh/106002


But always :

[Aug 13 09:47:57]     -- Started music on hold, class 'default', on
SIP/test2-00000014
[Aug 13 09:48:05]     -- Stopped music on hold on SIP/test2-00000014


Question 1 : why can't I use AND class "default" AND class "whatever" ?
Question 2 : why is my peer definition musiconhold=106002 never followed ?
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-13 07:29 jonaskellens   New Issue                                    
2010-08-13 07:29 jonaskellens   Asterisk Version          => Older 1.4 - please
test a newer version
2010-08-13 07:29 jonaskellens   Regression                => No              
2010-08-13 07:29 jonaskellens   SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list