aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/pbx/ael/ael-test/ael-test8/extensions.ael
blob: 17bc74e6f3f90c47783d07225bb0963b2f8b8c45 (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
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);
                 };

                 Hangup();
         };

}