diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-19 00:19:29 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-19 00:19:29 +0000 |
commit | f8247040e6231c4b3b5099ea3a526348b7941566 (patch) | |
tree | 0cc92ad6ebf6ae49a62f6e7ef8ec819121d63630 /trunk/pbx/ael/ael-test/ael-ntest10/extensions.ael | |
parent | d88e56c61ce2042544c1a8a71c93b69ab2e6ffba (diff) |
Creating tag for the release of asterisk-1.6.0-beta1v1.6.0-beta1
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta1@99163 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'trunk/pbx/ael/ael-test/ael-ntest10/extensions.ael')
-rw-r--r-- | trunk/pbx/ael/ael-test/ael-ntest10/extensions.ael | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/trunk/pbx/ael/ael-test/ael-ntest10/extensions.ael b/trunk/pbx/ael/ael-test/ael-ntest10/extensions.ael new file mode 100644 index 000000000..4a8386ccf --- /dev/null +++ b/trunk/pbx/ael/ael-test/ael-ntest10/extensions.ael @@ -0,0 +1,131 @@ +macro endsess() +{ + NoOp(hithere); +} + +macro nullchk(type) +{ + NoOp(${type} is this); +} + +macro endcall(type) { + switch(${type}) { + case out: + &nullchk(callid); + if(${testnotnull}) { + &endsess(); + goto ptr1 ; // <-- goto call to valid label + } + else { +ptr1: // <-- valid label + Softhangup(${CHANNEL}); + break ; + } + Noop(esac) ; + } +} + +macro endcall2(type) { + switch(${type}) { + case out: + &nullchk(callid); + if(${testnotnull}) { + &endsess(); + goto ptr1 ; // <-- goto call to valid label + } + case out2: + { +ptr1: // <-- valid label + Softhangup(${CHANNEL}); + break ; + } + Noop(esac) ; + } +} + +macro endcall3(type) { + switch(${type}) { + case out: + &nullchk(callid); + if(${testnotnull}) { + &endsess(); + goto ptr1 ; // <-- goto call to valid label + } + Noop(esac) ; + } + if(${testnotnull}) { + goto ptr1; + } + switch(${type}) { + case out: + if(${testnotnull}) { +ptr1: // <-- valid label + Softhangup(${CHANNEL}); + break ; + } + Noop(esac) ; + } +} + +macro endcall4(type) { + switch(${type}) { + case out: + &nullchk(callid); + if(${testnotnull}) { + &endsess(); + goto ptr1 ; // <-- goto call to valid label + } + Noop(esac) ; + } + if(${testnotnull}) { + goto ptr1; + } + switch(${type}) { + case out: + switch(${type}) + { + case in: + if(${testnotnull}) { +ptr1: // <-- valid label + Softhangup(${CHANNEL}); + break ; + } + Noop(esac) ; + } + } +} + +macro endcall5(type) { + switch(${type}) { + case out: + &nullchk(callid); + if(${testnotnull}) { + &endsess(); + goto ptr1 ; // <-- goto call to valid label + } + case in: + &nullchk(callid); + ptr2: + if(${testnotnull}) { + &endsess(); + goto ptr1 ; // <-- goto call to valid label + } + Noop(esac) ; + } + if(${testnotnull}) { + goto ptr1; + } + switch(${type}) { + case out: + switch(${type}) + { + case in: + if(${testnotnull}) { +ptr1: // <-- valid label + Softhangup(${CHANNEL}); + break ; + } + Noop(esac) ; + } + } +} |