Hello all, Wanted to toss out a question that I've been looking into for some time now with no real results. When a variable is given a value in the dialplan, that obviously will take up a little memory. If you're running a rather large/complex dialplan, you may end up with variables you don't need after a while. What do you think is the best way to clear these out and free up memory? Currently I use: Set(varname=) To tell asterisk to set it to a null value. Any thoughts? S McGowan
Tomislav ParĨina
2006-Jul-16 23:12 UTC
[asterisk-users] Re: Clearing variables in the dialplan?
In article <20060714210157.B427A395CBFF@smtp-2.hotpop.com>, rushowr@phreaker.net says...> Hello all, > > Wanted to toss out a question that I've been looking into for some time now > with no real results. When a variable is given a value in the dialplan, that > obviously will take up a little memory. If you're running a rather > large/complex dialplan, you may end up with variables you don't need after a > while. What do you think is the best way to clear these out and free up > memory? Currently I use: > > Set(varname=) > > To tell asterisk to set it to a null value. Any thoughts?If those are channel variable, they should be cleared when you hang up. -- Tomislav Par?ina Lama Computers Split Stinice 12, 21000 Split Tel.: +385(21)495148 Mob.: +385(91)1212148 SIP: tomo@pbx.lama.hr e-mail: tparcina#lama.hr http://www.lama.hr
rushowr@phreaker.net
2006-Jul-17 01:18 UTC
[asterisk-users] Re: Clearing variables in the dialplan?
On Monday 17 July 2006 2:12 am, Tomislav Par?ina wrote:> If those are channel variable, they should be cleared when you hang up.Thanks for the input, but I was thinking more in terms of clearing the variable during the call. I use temporary variables in my dialplans. SKM