Debian Codegraph @

pbx/ael/ael-test/ael-test18/extensions.ael

raw
1 context default
2 {
3
4 706/3077610011 => {
5 JabberStatus(asterisk|jmls@mike,StatusCode);
6
7 switch(${StatusCode}) {
8 case 1:
9 Dial(PJSIP/706,12);
10 switch(${DIALSTATUS}) {
11 case BUSY:
12 Voicemail(b706);
13 break;
14 default:
15 Voicemail(u706);
16 };
17 BackGround(hello);
18 break;
19 default:
20 Voicemail(u706);
21 };
22 ifTime(3:00-13:00|*|*|*)
23 {
24 NoOp(hello);
25 label1:
26 NoOp(goodbye);
27 }
28 else
29 {
30 NoOp(hithere);
31 label2:
32 NoOp(whatonearth?);
33 }
34 goto label1;
35 goto label2;
36 Hangup();
37 };
38
39 }