I want to redirect caller to an IVR after dialed number's hangup. I made research and found something called deadAGI
but I couldn't make it work. You can find my extensions_custom.conf
file below.
[from-internal-custom]
exten => 80,1,AGI(custom/agi.php)
exten => 80,2,MixMonitor(${FILE}.WAV)
exten => 80,3,Dial(SIP/custom/${NUMBER})
exten => 80,4,Hangup()
exten => h,1,deadAGI(custom/finish)
My AGI files are correct, I'm sure that. I just need to run after hangup command correctly.
Thanks in advance.
The "core show application Dial" states:
So change your code to:
If you want to run your script no metter the caller or callee hangs up:
So:
Your idea was almost OK. 'h' is an extension, not a priority.