What is the space for post-processing after hanging up the phone?

I’m trying to write an ivr program.

extend => 200,1, Answer()
same => n, Set(foo = ${TIMEOUT(digit)})
same => n, NoOp(foo is ${foop})
same => n, Set( TIMEOUT(digit) = 5)
same => n, Set( TIMEOUT(response) = 10)
same => n, Read(mynumber, /var/lib/asterisk/sounds/ko/1_Reservation information,3,skip,3,5)

If the caller hangs up while the call is in progress,
I’m going to write personal statistics and logs and finish it.

What should I do to do post-processing work after the phone call is disconnected?

I don’t know where to write it?

https://docs.asterisk.org/Configuration/Dialplan/Subroutines/Hangup-Handlers/

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.