In an asterisk dialplan, say one had:
[ext-miscdests]
include => ext-miscdests-custom
exten => 5,1,Noop(MiscDest: [some destination])
exten => 5,n,Goto(from-internal,[some number],1)
and wanted to squeeze in as the second step:
exten => 5,2,Log("NOTICE", "some notice")
how would one do that in context [ext-mistdests-custom]?
(this follows up on How to use asterisk Include statement the right way?)
You should understand how asterisk do matching.
Asterisk does not rewrite rules in current context with include. It will APPEND rules.
So. If you have like this
that is equivalent of :
If you need override context, use *_ovveride*.conf files, not *_custom.conf files. Ovveride files added BEFORE other files in freepbx.