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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Apr 1 09:22:48 CDT 2010


The following issue requires your FEEDBACK. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17124 
====================================================================== 
Reported By:                loic
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17124
Category:                   Core/PBX
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
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:              
====================================================================== 
Date Submitted:             2010-04-01 08:59 CDT
Last Modified:              2010-04-01 09:22 CDT
====================================================================== 
Summary:                    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>
====================================================================== 

---------------------------------------------------------------------- 
 (0120056) lmadsen (administrator) - 2010-04-01 09:22
 https://issues.asterisk.org/view.php?id=17124#c120056 
---------------------------------------------------------------------- 
We can not accept code that is submitted inline. Please submit by attaching
a unified diff to this issue. If you have not already signed the electronic
license, please do so prior to uploading the file. It will be a link at the
top of the page. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-01 09:22 lmadsen        Note Added: 0120056                          
2010-04-01 09:22 lmadsen        Status                   new => feedback     
======================================================================




More information about the asterisk-bugs mailing list