[asterisk-dev] Memory Leak bug 13235

Venefax venefax at gmail.com
Sat Aug 30 21:21:31 CDT 2008


I believe to have found the issue of a dramatic memory leak. It seems to be
unrelated to CDR or ODBC. It is the Dial function:
I wrote a simple dialplan like this:
exten =>_X.,1,Set(i=100000)
exten =>_X.,n,While($[${i} >= 0])
exten =>_X.,n,Dial(SIP/333333333333 at xx.xx.xx.xx) ; call to cisco fails
immediately
exten =>_X.,n,Set(i=$[${i} - 1])
exten =>_X.,n,EndWhile

I sent 12 calls only to the loop, using two SIP phones, and the memory keeps
growing as it shows this command:
ps auxf --width=200 | grep -v grep | grep usr/sbin/asterisk

Over time, the memory will exhaust and Asterisk will have to be restarted.
The memory will not be released one the calls hang up.





More information about the asterisk-dev mailing list