Debian Codegraph @

pbx/ael/ael-test/ael-test11/extensions.ael

raw
1 context test1
2 {
3 s =>
4 {
5 goto lab1;
6 if( ${testnotnull} )
7 {
8 lab1:
9 NoOp(hello);
10 }
11 else
12 {
13 lab1:
14 MoOp(goodbye);
15 }
16 }
17
18 1 =>
19 {
20 lab1:
21 NoOp(This one is OK.);
22 }
23 }
24
25 macro endcall5(type) {
26 switch(${type}) {
27 case out:
28 if(${testnotnull}) {
29 NoOp(whoosh);
30 goto ptr1 ; // <-- goto call to valid label
31 }
32 case in:
33 ptr1: // The First label is the valid one...
34 if(${testnotnull}) {
35 NoOp(wow);
36 goto ptr1 ; // <-- goto call to valid label
37 }
38 Noop(esac) ;
39 }
40 if(${testnotnull}) {
41 goto ptr1;
42 }
43 switch(${type}) {
44 case out:
45 switch(${type})
46 {
47 case in:
48 if(${testnotnull}) {
49 ptr1: // <-- duplicate label (macros are about the equiv of an extension)
50 Softhangup(${CHANNEL});
51 break ;
52 }
53 Noop(esac) ;
54 }
55 }
56 return;
57 }