thanks
i just only want to call an script wich creates issues for every incoming call into a JIRA system
my doubt is in wich file and how i have to put the call
actually in an older tribox is working placed in extensions_additonal.conf :
[ivr-16]
…
exten => s,n,GotoIf($["${CDR(disposition)}" = “ANSWERED”]?begin)
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n,AGI(DIPControlLlamadas2.agi)
…
but i have to rewrite every time i do some change and aplly it
In the new freepbx we have in extesions_additional.conf:
[ivr-1] ; DIARIO NORMAL
include => ivr-1-custom
include => from-did-direct-ivr
exten => s,1,Set(TIMEOUT_LOOPCOUNT=0)
…
perhaps i’m wrong but i believe that if i put the call into extensions_customs.conf under the key
If I understood you correctly, you want to execute the script when a call arrives at the IVR, right?
The way I would do it, it’s send the “Inbound Call” to a custom extension where it would execute the script and then forward the call to the IVR.
extension_custom.conf
exten => 1000,1,Answer()
same => n,GotoIf($["${CDR(disposition)}" = “ANSWERED”]?begin)
same => n,AGI(DIPControlLlamadas2.agi)
same => n,Goto(from-did-direct-ivr,s,1)
Something like that.
Inbound -> Custom Extension -> IVR
Don’t forget to register your extension in the “Admin” > “Custom Extensions”.
Rodrigo’s code will get you half way there, but it won’t work as written. You don’t want to use a Custom Extension, you need to use a Custom Destination.
Add a block of code to extensions_custom.conf that looks similar to this: