[Asterisk-bugs] [Asterisk 0010123]: MusicOnHold() drops the channel if the specified class does not exist

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jul 9 13:06:29 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10123 
====================================================================== 
Reported By:                blitzrage
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10123
Category:                   Resources/res_musiconhold
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.5 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        Yes 
Request Review:              
====================================================================== 
Date Submitted:             07-05-2007 14:37 CDT
Last Modified:              07-09-2007 13:06 CDT
====================================================================== 
Summary:                    MusicOnHold() drops the channel if the specified
class does not exist
Description: 
Subject pretty much says it all. Easiest fix is probably just to fall back
to the 'default' MoH class. This would also assume 'default' existed,
although if it didn't, then we can just drop the channel... or
alternatively, continue on in the dialplan (with the former being preferred
I guess since it won't change any behaviour)
====================================================================== 

---------------------------------------------------------------------- 
 qwell - 07-09-07 13:06  
---------------------------------------------------------------------- 
The 1.2 version "Works on my Box", for what it's worth.

    -- Executing SetMusicOnHold("SIP/5555-007a1a70", "blah2") in new
stack
    -- Executing StartMusicOnHold("SIP/5555-007a1a70", "blah3") in new
stack
Jul  9 13:22:12 WARNING[19467]: res_musiconhold.c:906 moh_getclass: No
Class: blah3
Jul  9 13:22:12 WARNING[19467]: res_musiconhold.c:906 moh_getclass: No
Class: blah2
Jul  9 13:22:12 WARNING[19467]: res_musiconhold.c:906 moh_getclass: No
Class: default
Jul  9 13:22:12 WARNING[19467]: res_musiconhold.c:935 local_ast_moh_start:
Using first Music on Hold class in list: blah.
    -- Started music on hold, class 'blah', on SIP/5555-007a1a70 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-09-07 13:06  qwell          Note Added: 0066822                          
======================================================================




More information about the Asterisk-bugs mailing list