[asterisk-bugs] [Asterisk 0017124]: [patch] minmemfree does not work

Asterisk Bug Tracker noreply at bugs.digium.com
Fri May 6 16:07:51 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17124 
====================================================================== 
Reported By:                loic
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   17124
Category:                   Core/PBX
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.6 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-04-01 08:59 CDT
Last Modified:              2011-05-06 16:07 CDT
====================================================================== 
Summary:                    [patch] minmemfree does not work
Description: 
When you set minmemfree option in asterisk.conf and you place a call, you
have already this error :
pbx.c:4501 increase_call_count: Available system memory (~1129MB) is below
the configured low watermark (*your minmemfree parameter*MB)
chan_sip.c:20305 handle_request_invite: Failed to start PBX (call limit
reached)

There is an error in the calculation of available memory in main.pbx.c.
To avoid that, I replace "curfreemem = sys_info.freeram /
sys_info.mem_unit;" by "curfreemem = sys_info.freeram * sys_info.mem_unit;"
in function increase_call_count.

The good code :
<inline code removed by lmadsen>
====================================================================== 

---------------------------------------------------------------------- 
 (0134610) svnbot (reporter) - 2011-05-06 16:07
 https://issues.asterisk.org/view.php?id=17124#c134610 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 317919

_U  trunk/
U   trunk/main/pbx.c

------------------------------------------------------------------------
r317919 | russell | 2011-05-06 16:07:50 -0500 (Fri, 06 May 2011) | 14
lines

Merged revisions 317917 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r317917 | russell | 2011-05-06 16:06:33 -0500 (Fri, 06 May 2011) | 7
lines
  
  Fix calculation of free RAM to make minmemfree option work.
  
  (closes issue https://issues.asterisk.org/view.php?id=17124)
  Reported by: loic
  Patches:
        pbx_c.diff uploaded by loic (license 1020)
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-06 16:07 svnbot         Checkin                                      
2011-05-06 16:07 svnbot         Note Added: 0134610                          
======================================================================




More information about the asterisk-bugs mailing list