Hi guys, I’m new to asterisk, and I have an issue about using include statement.
I have a context named app-calltrace-perform from FreePBX used when people press *69 to trace their call. The app-calltrace-perform written in extensions_additional.conf which will be overwritten when users submit something about dialplan on the Web gui.
[app-calltrace-perform]
include => app-calltrace-perform-custom
exten => s,1,Answer
...
exten => t,n,Macro(hangupcall,)
So I write my own app-calltrace-perform-custom in extensions_custom.conf to make the dialplan get to my custom way
[app-calltrace-perform-custom]
exten => s,1,Answer()
same => n,VERBOSE("Something here")
same => n,Playback(hello-world)
same => n,Hangup()
Then I do “dialplan reload” and try again, but dialplan do not play my context at all (no verbose, no play hello-world).
I’ve found something useful in https://wiki.asterisk.org/wiki/display/AST/Include+Statements+Basics
So now I’m wondering how to use my custom context for stuffs like this, if you have any idea, please guide me.
Note that extensions_additional.conf and extensions_custom.conf was already included in extensions.conf by FreePBX
Thanks in advance
Loi Dang