diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-07 12:59:47 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-07 12:59:47 +0000 |
commit | ae7ab1aff9544a168171def2af815e7119894c58 (patch) | |
tree | 5be827baeaa02c5e2b53e45899f861e630ebe160 /pbx/ael/ael-test/ael-test11 | |
parent | cb0b92c3d407dbd5233a62a8d67ef1bb0b21a4dd (diff) |
The contents of branch teams/murf/bug_7598 are being folded in here.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39151 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/ael/ael-test/ael-test11')
-rw-r--r-- | pbx/ael/ael-test/ael-test11/extensions.ael | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pbx/ael/ael-test/ael-test11/extensions.ael b/pbx/ael/ael-test/ael-test11/extensions.ael new file mode 100644 index 000000000..886a51eb5 --- /dev/null +++ b/pbx/ael/ael-test/ael-test11/extensions.ael @@ -0,0 +1,56 @@ +context test1 +{ + s => + { + goto lab1; + if( ${testnotnull} ) + { + lab1: + NoOp(hello); + } + else + { + lab1: + MoOp(goodbye); + } + } + + 1 => + { + lab1: + NoOp(This one is OK.); + } +} + +macro endcall5(type) { + switch(${type}) { + case out: + if(${testnotnull}) { + NoOp(whoosh); + goto ptr1 ; // <-- goto call to valid label + } + case in: + ptr1: // The First label is the valid one... + if(${testnotnull}) { + NoOp(wow); + goto ptr1 ; // <-- goto call to valid label + } + Noop(esac) ; + } + if(${testnotnull}) { + goto ptr1; + } + switch(${type}) { + case out: + switch(${type}) + { + case in: + if(${testnotnull}) { +ptr1: // <-- duplicate label (macros are about the equiv of an extension) + Softhangup(${CHANNEL}); + break ; + } + Noop(esac) ; + } + } +} |