[Asterisk-Users] Is it possible to delete global variables

Bastian Schern ml02 at in-bln.de
Tue May 16 01:16:01 MST 2006


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





More information about the asterisk-users mailing list