Christian Gansberger
2009-Apr-28 09:35 UTC
[asterisk-users] Call recording - posible to remove recorded file at the end of the call
I m recording every call, and i want to remove the recorded call at the end of call, when the callee doesn't want the call beeing recorded. Maybe someone can point me in the right direction, having agents with callbacklogin and recording enabled in agents.conf. So if the callee doesn't want the recording, the agents is pressing 0 for deleting the file or 1 for leave the file stored. thanks christian gansberger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090428/e2fcfd60/attachment.htm
Danny Nicholas
2009-Apr-28 13:22 UTC
[asterisk-users] Call recording - posible to remove recorded fileat the end of the call
Here are two ways to handle this scenario: 1. call an AGI at the end of the call sample dialplan exten => s,1,Set(Callid=time) exten => s,2,Mixmonitor(${Callid}.wav) exten => s,3,background(zeroorone) exten => s,4,waitexten(2) exten => s,n,hangup exten => 0,1,system(/bin/rm /var/lib/asterisk/sounds/blah/${callid}.wav) or exten => 0,1,AGI(killcall.agi | ${callid}.wav) exten => 0,2,hangup exten => 1,1,hangup 2. present the calls in a web page and let the agent zap them there. _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Christian Gansberger Sent: Tuesday, April 28, 2009 4:35 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Call recording - posible to remove recorded fileat the end of the call I m recording every call, and i want to remove the recorded call at the end of call, when the callee doesn't want the call beeing recorded. Maybe someone can point me in the right direction, having agents with callbacklogin and recording enabled in agents.conf. So if the callee doesn't want the recording, the agents is pressing 0 for deleting the file or 1 for leave the file stored. thanks christian gansberger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090428/3129d090/attachment-0001.htm