Continue after Record()

Is there any way I can continue the executing the dialplan after a hangup in Record? I need something similar to the ‘g’ parameter in Dial so I can update my database with the filename. Any help would be appreciated thanks!

h extension? Normal dialplan cannot run on a hungup channel.

Use h, like david says.

exten=>h,1,AG(updatedb.agi) etc (OPEN MIND)

When finishing the recording just press the ‘#’ button. It will stop recording, save the audio file and continue with the dial plan. Like:

000 => {
           Record(filename.wav);
           NoOp(Ok, finish recording and continuing the dialplan);
};

Just press ‘#’.