[asterisk-users] #exec in #include'd file

Danny Nicholas danny at debsinc.com
Mon Jul 13 16:29:59 CDT 2009


Just out of curiousity (haven't got to AEL yet), should these exec's be
re-written as AGI calls?

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tilghman
Lesher
Sent: Monday, July 13, 2009 4:17 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] #exec in #include'd file

On Monday 13 July 2009 01:03:48 pm Philipp Kempgen wrote:
> Philipp Kempgen schrieb:
> > Is Asterisk supposed to evaluate #exec's in an #include'd file?
>
> I should probably add that it doesn't work for me in case that wasn't
> obvious.
>
> NOTICE[14143]: ael.flex:878 setup_filestack:   --Read in included file
> ..../e-globals.ael, 1999 chars ERROR[14143]: ael.y:812 ael_yyerror: ====
> File: ..../e-globals.ael, Line 53, Cols: 8-58: Error: syntax error,
> unexpected word, expecting '='
>
> The line in question is
> #exec "..../e-globals.ael.php"
>
> execincludes is enabled.

The directive "#exec" is not permitted in an AEL configuration file.

-- 
Tilghman

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list