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

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


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17856 
====================================================================== 
Reported By:                jonaskellens
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   17856
Category:                   Resources/res_musiconhold
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
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:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-08-13 07:29 CDT
Last Modified:              2010-08-13 11:38 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 ?
====================================================================== 

---------------------------------------------------------------------- 
 (0125945) qwell (administrator) - 2010-08-13 11:38
 https://issues.asterisk.org/view.php?id=17856#c125945 
---------------------------------------------------------------------- 
This is a configuration issue.

Take a look at the sample sip.conf, and note the various moh options. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-13 11:38 qwell          Note Added: 0125945                          
2010-08-13 11:38 qwell          Status                   new => resolved     
2010-08-13 11:38 qwell          Resolution               open => no change
required
2010-08-13 11:38 qwell          Assigned To               => qwell           
2010-08-13 11:38 qwell          Status                   resolved => closed  
======================================================================




More information about the asterisk-bugs mailing list