[HELP]Continue After Hang up


#1

Hello everybody.
Im doing a prepaid AGI application and i need to write a custom CDR after user hang up but I could not find a way to continue executing after a DIAL command.
This is my extensions.conf configuration…
exten => _011.,1,Answer()
exten => _011.,2,Wait,2
exten => _011.,3,AGI(worlddial,1,${ACCOUNTCODE},${EXTEN:3})
exten => _011.,4,GotoIf($[ ${timepermit} = 0 ]?100)
exten => _011.,5,Dial(H323/8080${EXTEN}@x.x.x.x,120,L([${timepermit}*1000]:30000:0)g)
exten => _011.,6,DeadAGI(worlddial,2,${ACCOUNTCODE},${EXTEN:3})
exten => _011.,100,Hangup

How can i do to continue executing commands after origination channel hang up?.
I’ll appreciate your help.
Thanks…


#2

Take a look at the “h” extension

voip-info.org/wiki-Asterisk+ … extensions

Keep me posted