# Asterisk Project : AEL including other files

Added by mdavenport , edited by mdavenport on Aug 31, 2010

You can include other files with the #include "filepath" construct.

    #include "/etc/asterisk/testfor.ael"

An interesting property of the #include, is that you can use it almost anywhere in the .ael file. It is possible to include the contents of a file in a macro, context, or even extension. The #include does not have to occur at the beginning of a line. Included files can include other files, up to 50 levels deep. If the path provided in quotes is a relative path, the parser looks in the config file directory for the file (usually /etc/asterisk).