hi list,<br><br>I&#39;m looking for a way to execute commands in my dialplan specifically when a caller has hung up. my curretn dialplan looks like this:<br><br>exten =&gt; s,1,Answer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>exten =&gt; s,n(restart),BackGround(intro)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<br>exten =&gt; s,n,Read(Enter,4,4)<br>exten =&gt; s,n,Voicemail(${Enter},u)<br>exten =&gt; s,n,agi(process.php|${Enter})<br>exten =&gt; #,1,Playback(thanks)<br>exten =&gt; #,n,Hangup<br><br>it lets a user record a message to a chosen voicebox, when the user finishes his message my pressing &quot;#&quot;, the script 
process.php is executed via AGI&nbsp; everything fine. however, when the user finishes recording by simply hanging up, asterisk isn&#39;t executing the AGI-command any more. what I&#39;m looking for is some kind of &quot;on hangup&quot;-hook to catch this use-case...
<br><br>any help appreciated, thx!<br><br>michael<br>