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.
[app-calltrace-perform] include => app-calltrace-perform-custom exten => s,1,Answer ... exten => t,n,Macro(hangupcall,)
The “app-calltrace-perform” written in extensions_additional.conf
which will be overwritten when users submit something about dialplan on the Web gui. So I have to write my own context
"app-calltrace-perform-custom" on another file called extensions_custom.conf
[app-calltrace-perform-custom] exten => s,1,Answer() same => n,VERBOSE("Something here") same => n,Playback(hello-world) same => n,Hangup()
Note that extensions_additional.conf and extensions_custom.conf was already included from extensions.conf as the convention of FreePBX
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
Asterisk will always try to find a matching extension in the
current context first, and only follow the include statement to a new
context if there isn’t anything that matches in the current context.
So now I dont know how to use my custom context for stuffs like this.
Sorry if this a dumb question, but if you have any idea, pleas guide me
Thanks in advance