[asterisk-bugs] [Asterisk 0014831]: Issue starting Asterisk with LinuxHA

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Apr 30 01:47:14 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14831 
====================================================================== 
Reported By:                chris-mac
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   14831
Category:                   Resources/res_musiconhold
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 186527 
Request Review:              
====================================================================== 
Date Submitted:             2009-04-05 11:22 CDT
Last Modified:              2009-04-30 01:47 CDT
====================================================================== 
Summary:                    Issue starting Asterisk with LinuxHA
Description: 
Just noticed strange behaviour of Music on Hold.

When I start asterisk for the first time (after the server was powered
on), and try to put a SIP call on hold, console shows:

DEBUG[5845]: res_musiconhold.c:726 get_mohbyname: Music on Hold class
'default' not found in memory

the following CLI command shows nothing:
asterisk -r -x "moh show classes"

Only after asterisk is restarted MoH works OK, and 'asterisk -r -x "moh
show classes"' shows:
--------------------
Class: default
	Mode: files
	Directory: /var/lib/asterisk/moh
--------------------

My musiconhold.conf:
----------------
[general]
cachertclasses=yes

[default]
mode=files
directory=/var/lib/asterisk/moh
----------------

Already tried with cachertclasses=yes/no with the same result.

Best regards,
Chris
====================================================================== 

---------------------------------------------------------------------- 
 (0103986) svnbot (reporter) - 2009-04-30 01:47
 http://bugs.digium.com/view.php?id=14831#c103986 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 191283

U   trunk/main/asterisk.c

------------------------------------------------------------------------
r191283 | tilghman | 2009-04-30 01:47:13 -0500 (Thu, 30 Apr 2009) | 11
lines

Change working directory to / under certain conditions.
If backgrounding and no core will be produced, then changing the directory
won't break anything; likewise, if the CWD isn't accessible by the current
user, then a core wasn't possible anyway.
(closes issue http://bugs.digium.com/view.php?id=14831)
 Reported by: chris-mac
 Patches: 
       20090428__bug14831.diff.txt uploaded by tilghman (license 14)
       20090430__bug14831.diff.txt uploaded by tilghman (license 14)
 Tested by: chris-mac

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=191283 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-30 01:47 svnbot         Note Added: 0103986                          
======================================================================




More information about the asterisk-bugs mailing list