[asterisk-bugs] [Asterisk 0014037]: Memory usage increase when using SUBSCRIBE + vars defined in sip.conf

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 15 10:58:22 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14037 
====================================================================== 
Reported By:                marvinek
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   14037
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.22 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-09 04:39 CST
Last Modified:              2008-12-15 10:58 CST
====================================================================== 
Summary:                    Memory usage increase when using SUBSCRIBE + vars
defined in sip.conf
Description: 
I have a peer defined in sip.conf with pre-set variables (see excerpt
bellow)
and subscription enabled for that peer. I can see ( by memory show summary
) that  all variables get allocated again with each subscribe request from
the phone. These allocations do not get ever released until phone is
restarted an re-registers (propably with different session id ?). This
results in asterisk eating up all memory. I can reproduce this with
Grandstream GXP-2000 , Linksys SPA96 and asterisk Releases 1.4.11, 1.4.22  
  

memory show ... shows increasing allocations in config.c
When I remove pre-defined vars from sip.conf problem disappears.

  
====================================================================== 

---------------------------------------------------------------------- 
 (0096398) marvinek (reporter) - 2008-12-15 10:58
 http://bugs.digium.com/view.php?id=14037#c96398 
---------------------------------------------------------------------- 
Sorry for the dealy. As explained in original description, there is NO
problem with call setup and cleanup. The problem is with SIP SUBSCRIBE
message processing - this means when I enable BLF keys on the phone and the
phone (peer) has defined vars in sip.conf(see attached sip.conf and
gxp-setup.txt).

When register expire-time is set as low as 1 minute you can easily see
memory increase each 60 seconds and count of new allocations = number of
vars defined for peer. This is beacuse ... with each registration phone
sends as many subscribes as is a number of BLF key activated. So no calls
needed to see the problem.
 
Linksys962 has separate timeout for subscribe . So with this phone I could
see that memory consumption is related only to SUBSCRIBE message and not to
REGISTER message alone.

When the phone's BLFs are not able to subscribe (i.e. wrong hint extension
or context ) memory is not affected.

I am ready to give you an root acces to my test setup 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-15 10:58 marvinek       Note Added: 0096398                          
======================================================================




More information about the asterisk-bugs mailing list