However, the NoOp message never displays and the AGI is never called when announcement 16 plays. When dialplan is reloaded, every announcement EXCEPT 16 has the CLI line
Context ‘app-announcement-3’ tries to include nonexistent context ‘app-announcement-3-custom’
I need to have the AGI run before the announcement because if customer hangs up on announcement the announcement destination is never executed.
(misc dest 1 executes the AGI, but does not run if customer hangs up on announcement)
So it seems my [app-announcement-16-custom] should be called first, and it should be the first “1” – but that does not seem to be the case. I tried putting
#include announcement-custom.conf
in extensions_override_freepbx.conf but it still didn’t work. The file announcement-custom.conf is created via automation.
Any idea how can I get the AGI to run BEFORE the announcement?
The custom file is included AFTER the announcement.
I re-wrote my application to put the whole [app-announcement-XX] in extensions_override_freepbx.conf and that finally made it work. It updates about 600 announcements to run an AGI BEFORE the announcement.