As is probably obvious from some of my recent posts, I am on a project right now with a bit of customization required.
But getting what I need to happen in a coupe of places is really, really a pain in the butt.
Almost everything has an include. Great.
But includes are processed at the end. Not great. Because most contexts have a hangup or something else that causes whatever you want to include not to run.
Or am I totally misunderstanding?
Simple Example:
Speak my extension is *65 and executes this.
[app-speakextennum]
include => app-speakextennum-custom
exten => *65,1,Set(CONNECTEDLINE(name-charset,i)=utf8)
exten => *65,n,Set(CONNECTEDLINE(name,i)=Speak Extension)
exten => *65,n,Set(CONNECTEDLINE(num,i)=*65)
exten => *65,n,Answer
exten => *65,n,Wait(1)
exten => *65,n,Macro(user-callerid,)
exten => *65,n,GotoIf($[${DIALPLAN_EXISTS(app-speakextennum,${CHANNEL(language)},1)}]?app-speakextennum,${CHANNEL(language)},1:ap$
exten => en,1,Playback(your)
exten => en,n,Playback(extension)
exten => en,n,Playback(number)
exten => en,n,Playback(is)
exten => en,n,SayDigits(${AMPUSER})
exten => en,n,Wait(2)
exten => en,n,Hangup
What is the point of include => app-speakextennum-custom
?
Because I can drop this in extensions_custom.conf
and it never executes because of the hangup in [app-speakextennum]
.
[app-speakextennum-custom]
exten => s,1,Noop(look at me in app-speakextennum-custom)
exten => s,n,DumpChan
I cannot find any wiki article or other help article on what context includes are actually useful. Does something like this even exist?