Bastian Schern
2006-May-15 16:09 UTC
[Asterisk-Users] Is it possible to delete global variables
Hello, is it possible to delete global variables during runtime? Regards Bastian ____________ Virus checked by G DATA AntiVirusKit Version: AVK 16.7382 from 15.05.2006 Virus news: www.antiviruslab.com
Tzafrir Cohen
2006-May-15 16:13 UTC
[Asterisk-Users] Is it possible to delete global variables
On Tue, May 16, 2006 at 01:09:41AM +0200, Bastian Schern wrote:> Hello, > > is it possible to delete global variables during runtime?Is setting the variable to an empty value good enough? How do you use it? -- Tzafrir
Bastian Schern
2006-May-16 01:16 UTC
[Asterisk-Users] Is it possible to delete global variables
Tzafrir Cohen schrieb:> On Tue, May 16, 2006 at 01:09:41AM +0200, Bastian Schern wrote: >> Hello, >> >> is it possible to delete global variables during runtime? > > Is setting the variable to an empty value good enough? How do you use > it? >I will use it to check if a Caller has already a open connection to a specific destination. In that moment I use e.g. Set(active_${CALLERIDNUM}=1|g) to set a global variable in my dialplan. After the caller hung up I will use Set(active_${CALLERIDNUM}=|g) to remove my global variable "active_${CALLERIDNUM}". Is the Memory space of variable really free? Or will I rise into a memory problem if I do so? Regards Bastian ____________ Virus checked by G DATA AntiVirusKit Version: AVK 16.7394 from 16.05.2006 Virus news: www.antiviruslab.com