[asterisk-bugs] [Asterisk 0014479]: "iax2 prune realtime" doesn't prune user, only peer

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 26 10:07:09 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14479 
====================================================================== 
Reported By:                mousepad99
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   14479
Category:                   Functions/func_realtime
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-02-14 12:06 CST
Last Modified:              2009-02-26 10:07 CST
====================================================================== 
Summary:                    "iax2 prune realtime" doesn't prune user, only peer
Description: 
Unlike it's other brother, sip prune realtime,  iax2 prune realtime will
only prune the iax2 peer.  Making it impossible to prune a cached iax
"friend".

The only way to prune the iax user from the cache is to issue:
iax2 reload

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

---------------------------------------------------------------------- 
 (0100797) svnbot (reporter) - 2009-02-26 10:07
 http://bugs.digium.com/view.php?id=14479#c100797 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 178769

_U  branches/1.6.1/
U   branches/1.6.1/channels/chan_iax2.c

------------------------------------------------------------------------
r178769 | dvossel | 2009-02-26 10:07:08 -0600 (Thu, 26 Feb 2009) | 15
lines

Merged revisions 178767 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r178767 | dvossel | 2009-02-26 09:50:22 -0600 (Thu, 26 Feb 2009) | 8
lines
  
  IAX2 prune realtime fix
  
  Iax2 prune realtime had issues.  If "iax2 prune realtime all" was
called, it would appear like the command was successful, but in reality
nothing happened.  This is because the reload that was supposed to take
place checks the config files, sees no changes, and does nothing.  If there
had been a change in the the config file, the realtime users would have
been marked for deletion and everything would have been fine.  Now
prune_users() and prune_peers() are called instead of reload_config() to
prune all users/peers that are realtime.  These functions remove all
users/peers with the rtfriend and delme flags set. iax2_prune_realtime()
also lacked the code to properly delete a single friend.  For example. if
iax2 prune realtime <friend> was called, only the peer instance would be
removed. The user would still remain.  
  
  (closes issue http://bugs.digium.com/view.php?id=14479)
  Reported by: mousepad99
  Review: http://reviewboard.digium.com/r/176/
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-26 10:07 svnbot         Checkin                                      
2009-02-26 10:07 svnbot         Note Added: 0100797                          
======================================================================




More information about the asterisk-bugs mailing list