[Dec 25 12:12:49] ERROR[5864]: pbx_ael.c:2289 check_pval_item: Error: file /etc/asterisk/ael/vaw.ael, line 168-168: The macro call to vaw-std-exten has 2 arguments, but the macro definition has 4 arguments
[Dec 25 12:12:49] ERROR[5864]: pbx_ael.c:2289 check_pval_item: Error: file /etc/asterisk/ael/vaw.ael, line 169-169: The macro call to vaw-std-exten has 2 arguments, but the macro definition has 4 arguments
[Dec 25 12:12:49] ERROR[5864]: pbx_ael.c:2289 check_pval_item: Error: file /etc/asterisk/ael/vaw.ael, line 170-170: The macro call to vaw-std-exten has 2 arguments, but the macro definition has 4 arguments
7135553168 => &vaw-std-exten(3168,NO); // Robert L.
7135553169 => &vaw-std-exten(3169,YES); // Ron G.
macro vaw-std-exten (ext,follow) {
NoOp(Number: ${CALLERID(number)});
NoOp(Name: ${CALLERID(name)});
switch(${CALLERID(number)}){
case 7135553160:
case 7135553161:
case 7135553162:
case 7135553163:
case 7135553164:
case 7135553165:
case 7135553166:
CALLERID(name)="VAW";
break;
case 7135553167:
CALLERID(name)="Christine D.";
break;
case 7135553168:
CALLERID(name)="Robert L.";
break;
case 713553169:
CALLERID(name)="Ron G.";
break:
default:
NoOp();
}
Dial(SIP/${ext},20);
switch(${DIALSTATUS}) {
case BUSY:
Answer();
Wait(1);
Voicemail(${ext}@vaw,b);
break;
default:
NoOp();
}
Dial(SIP/${ext},20);
switch(${DIALSTATUS}) {
case BUSY:
Answer();
Wait(1);
Voicemail(${ext}@vaw,b);
break;
default:
Answer();
Wait(1);
if ( "${follow}" = "YES") {
FollowMe(${ext},san);
}
Voicemail(${ext}@vaw,u);
}
}