aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/pbx/ael/ael-test/ael-test18/extensions.ael
blob: ee03d590991bc7cab8a8571cfb8738406e98542b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
context default
{

706/3077610011 => {
                 JabberStatus(asterisk|jmls@mike,StatusCode);

                 switch(${StatusCode}) {
                         case 1:
                                 Dial(SIP/706,12);
                                 switch(${DIALSTATUS}) {
                                        case BUSY:
                                                 Voicemail(b706);
                                                 break;
                                        default:
                                         Voicemail(u706);
                                 };
				 BackGround(hello);
                                 break;
                         default:
                                 Voicemail(u706);
                 };
		ifTime(3:00-13:00|*|*|*)
		{
			NoOp(hello);
			label1:
			NoOp(goodbye);
		}
		else
		{
			NoOp(hithere);
			label2:
			NoOp(whatonearth?);
		}
		goto label1;
		goto label2;
                 Hangup();
         };

}