[Asterisk-Users] line numbering and gosub
Adam Roach
adam at dynamicsoft.com
Sun Aug 24 13:38:37 MST 2003
John Brown [mailto:jmbrown at chagresventures.com] writes:
> It would be nice to have a Gosub type command. That
> way you could pop off to a standard strain of code, even
> nest a bit and then by the magic of a stack pop back to
> previous parts......
That's exactly what macros do.
Just set up a context called something like "[macro-foo]",
and you can "gosub" to it like:
exten => _1800NXXXXXX,1,Macro(foo)
/a
More information about the asterisk-users
mailing list