Well, I've never seen dialplan like that - is this a very old version
of Asterisk, or psuedocode?
Anyway..
A subroutine MUST be balanced, and if a subroutine is aborted before
it reaches return, you'll be in all sorts of hell.
An example:
You make a subroutine of some sound files you want to
Hi All
What happens if I, inside of a while/endwhile loop, call recursively a
macro that itself has another while/endwhile loop and calls exitwhile() inside
the
recursive call?
[macro-recursive]
instance=$ARG1
if instance>3
macroexit
X=1
_var1=""
; recursive loop
while(Dcondition)