[asterisk-users] AEL Question
Michel R Vaillancourt
mvaillancourt at neoxo.com
Fri Oct 13 06:30:34 MST 2006
Hi, all. I'm making my first foray into AEL. I'm starting with a
simple macro, but I've already encountered an odd behaviour. I'm
wondering if someone can shed some insight:
Asterisk 1.2.9.1
macro newPlaceCallPSTN {
s => {
TIMEOUT(absolute)=7200;
NoOp(Analog Out List: ${ANALOGOUT});
ChanIsAvail(${ANALOGOUT});
NoOp(Available Out List: ${});
// --
theChannel=Cut(AVAILCHAN|-|1);
NoOp(Now Calling ${MACRO_EXTEN} on ${theChannel}....);
// --
Dial(${theChannel}/${MACRO_EXTEN:${TRUNKMSD}});
};
};
... I get:
-- Executing macro("SIP/162-4c8b", "newPlaceCallPSTN")
Oct 13 08:57:22 WARNING[15320]: ast_expr2.fl:183 ast_yyerror:
ast_yyerror(): syntax error: syntax error, unexpected TOK_GT, expecting
TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
> { TIMEOUT(absolute)=7200; NoOp(Analog Out List:
ZAP/4&ZAP/3&ZAP/2&ZAP/1);
ChanIsAvail(ZAP/4&ZAP/3&ZAP/2&ZAP/1); NoOp(Available Out List:
); theChannel=Cut(AVAILCHAN|-|1);
NoOp(Now Calling 95145121677 on ....);
Dial(/5145121677); }
^
Oct 13 08:57:22 WARNING[15320]: ast_expr2.fl:187 ast_yyerror: If you
have questions, please refer to doc/README.variables in the asterisk source.
-- Executing Set("SIP/162-4c8b", "s =0") in new stack
== Auto fallthrough, channel 'SIP/162-4c8b' status is 'UNKNOWN'
From what I can see, ChanIsAvail() is not actually populating
AVAILCHAN the way it should. Is there a different syntax I should be
using with AEL for this function?
--
--Michel Vaillancourt
Senior Telephony Engineer
Neoxo Inc (www.neoxo.com)
+1 514 395 1106 ext 117
More information about the asterisk-users
mailing list