I’m running Asterisk 13.6 and I wonder how to make this warning disappear:
WARNING: config.c:354 ast_include_new: '/etc/asterisk/Custom_Acceuil_8310.conf', line 276: Same File included more than once! This data will be saved in Custom_Ringgroup.conf~~1 if saved back to disk.
I have a file named Custom_Ringgroup.conf that is included in 2 different context.
It’s working without any problem but I get the warning every time I do a dialplan reload.
;> extension.conf > ;Context 1: > [Internal] > #include "Custom_Ringgroup.conf" > ;Context 2: > [FROM_PRI] > #include "Custom_Acceuil_8310.conf" > ;Inside Custom_Acceuil_8310.conf there's my second include: > #include "Custom_Ringgroup.conf"
The inside of the included file look like this:
> exten => 3180,1,Gosub(Sub_Ringgroup,start,1(3180,3181))
The file must be included in both context, and I do not want to create two files under different names.
I could understand the warning if the file was included twice in the same context, but context are not same…
It’s a large dialplan, so I’m only giving you part of what is in the file, so it’s easier to read.