[asterisk-bugs] [Asterisk 0014207]: iax2 trunked channels not being cleared

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Mar 20 16:29:56 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14207 
====================================================================== 
Reported By:                clive18
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   14207
Category:                   Channels/chan_iax2
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.2.X 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.2  
SVN Revision (number only!): 162868 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-10 14:53 CST
Last Modified:              2009-03-20 16:29 CDT
====================================================================== 
Summary:                    iax2 trunked channels not being cleared
Description: 
It appears to me as a memory leak, as many old iax2 channels are appearing
in the "iax2 show netstats" as:
(None)                    1000    0   40     0   0     0    0      0    0 
  0     0   0     0    0      0

At present I see 36 out of 57 of these channels reported on "iax2 show
netstats", but when I do a "show channels" there are only 21 calls.

In my humble opinion, something on the channel is not being closed
properly at the end of a call.
Before I was using version 1.2.6 and had no issue at all. I know its been
a long time since then, but I know something is now broken, although I am
not sure which is the latest version which has this behavior.

If I leave asterisk to run on its own, after 1 week there are about 60 of
these ghost channels displayed, and the number keeps increasing with time.
====================================================================== 

---------------------------------------------------------------------- 
 (0102026) trendboy (reporter) - 2009-03-20 16:29
 http://bugs.digium.com/view.php?id=14207#c102026 
---------------------------------------------------------------------- 
I've noticed this too on my box, but it turned out I had in my
extensions.ael the following:

   s => {
           Answer();
           Dial(IAX/etcetcetcetc);
           Hangup();
}

(you may have done this on the old extensions.conf format, same thing)

Anyway. It would show up phantom calls as whenever I hung up a call it
could continue to appear as alive when I did a iax2 show netstats

The fix or work around was to REMOVE the Answer() method and this fixed
it. I have no idea why and have logged a bug (0014632).

Give that a try and see if it helps you. If you have never used the AEL
format, then just use it as you would in the old conf format and just
remove the answer bit, so 1,answer; is removed to and the next number is
decremented in the list for (each) record.
Dave :) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-20 16:29 trendboy       Note Added: 0102026                          
======================================================================




More information about the asterisk-bugs mailing list