[asterisk-users] Re: AEL Question

Michel R Vaillancourt mvaillancourt at neoxo.com
Fri Oct 13 08:14:02 MST 2006


Steve Murphy wrote:
> 
> I wish all AEL problems were this easy!
> 
> The complaints are coming from the fact that you have to call the
> built-in function
> TIMEOUT from within the ${ } notation, or its equivalent... 
> 
> To do this you need an app call to put it in...
> Try:           Set(TIMEOUT(absolute)=7200);
> instead.
> 
> And, Function names (last time I checked) are case sensitive, so the
> line:
> 
> theChannel=Cut(AVAILCHAN|-|1);
> 
> Should most likely be:
> 
> Set(theChannel=${CUT(${AVAILCHAN}|-|1)});
> 
> So, don't forget to wrap your variable names in ${} and don't forget
> that
> the first argument to the app Set() is treated as a variable name
> without having
> to have it wrapped in ${}.
> 
> murf
> 

	Well, I made the changes you suggested, reloaded AEL and got the same 
result:

     -- Executing macro("SIP/162-c7ac", "newPlaceCallPSTN")
Oct 13 11:09:07 WARNING[15648]: 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:
  > {            Set(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: 
);                             Set(theChannel=);      NoOp(Now Calling 
95145121677 on ....);                           Dial(/5145121677);      }
  ^
Oct 13 11:09:07 WARNING[15648]: ast_expr2.fl:187 ast_yyerror: If you 
have questions, please refer to doc/README.variables in the asterisk source.
     -- Executing Set("SIP/162-c7ac", "s =0") in new stack
   == Auto fallthrough, channel 'SIP/162-c7ac' status is 'UNKNOWN'

	... again, it seems that all processing is occuring properly, but 
ChanIsAvail() is not setting the AVAILCHAN as it should.  Suggestions?
-- 
	--Michel Vaillancourt
	Senior Telephony Engineer
	Neoxo Inc  (www.neoxo.com)
	+1 514 395 1106 ext 117


More information about the asterisk-users mailing list