System() after Hungup


I was planning to execute a script after the HungUp command. Is there a way to do this?

I will make a convertwavtomp3 script. I will execute this script after a call has been made. To be precise, I will execute it after the End MixMonitor Application after a call.


Execute the needed actions in the ‘h’ extension of the context.


Marco Bruni

This is my sample Dialplan.

exten => 500,1,Answer()
exten => 500,n,Set(DATETIME=${STRFTIME(${EPOCH},%m.%d.%C%y-%H.%M.%S)})
exten => 500,n,NoOp(DATETIME: ${DATETIME})
exten => 500,n,Set(CALLFILENAME=${CALLERID(num)}-${DATETIME}-${EXTEN})
exten => 500,n,MixMonitor(${CALLFILENAME}.wav)
exten => 500,n,Set(MONITOR_EXEC=/var/lui/test)
exten => 500,n,Set(CALLERID(name)=Anonymous)
exten => 500,n,Playback(priv-recordintro)
exten => 500,n,Playback(silence/1)
exten => 500,n,Background(“demo-congrats”)
exten => 500,n,Wait(5)
exten => 500,n,HangUp

I want to execute /var/lui/test after the call. When I try this, it is still not working.