[asterisk-users] Asterisk stops loading include files it file is missing
asterisk at phreaknet.org
asterisk at phreaknet.org
Sun Sep 5 16:38:36 CDT 2021
On 9/5/2021 5:10 PM, Dovid Bender wrote:
> Hi,
>
> If I have in extensions.conf includes to files that does not exist
> Asterisk stop loading all other files. Say for instance I have:
>
> #include one.conf ; Exists
> #include two.conf ; Does not exist
> #include three.conf ; Exists
>
> If two.conf does not exist, even if three.conf exists, asterisk will
> not load it. Was this done by design or is this a bug?
This is by design.
You should use #tryinclude instead of #include for two.conf:
https://wiki.asterisk.org/wiki/display/AST/Using%20The%20include,%20tryinclude%20and%20exec%20Constructs
More information about the asterisk-users
mailing list