[asterisk-users] LCR in Asterisk

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Feb 13 12:49:17 CST 2008


Doug-

Please fix your email client.  One line per word in quoting is a little
excessive.  Better yet, turn off HTML.

On Wednesday 13 February 2008 12:17:30 Douglas Garstang wrote:
> Is that nasty little problem of no local variables in macros fixed yet?
> That's a pretty big pain in the ass. You have to prefix your variables with
> the name of the macro it's in to avoid stepping all over yourself.

Macros are deprecated.  Gosubs are the way forward, and yes, they have
local variables.  Simply define them once as Set(LOCAL(foo)=bar) and foo
will be gone when the innermost stack is removed (either by Return or
StackPop).

-- 
Tilghman



More information about the asterisk-users mailing list