If you're up to using the Manager interface and your programming language of choice, you could poll the list of active calls and stop recording when their duration exceeds a minute. According to my docs, res/res_monitor.c implements manager commands that could be used to halt current recordings.
The Asterisk-Java library has a "StatusAction" and "StopMonitorAction," if Java is a language candidate for an application you might write. Martin Smith, Systems Developer [EMAIL PROTECTED] Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Tony Mountifield > Sent: Tuesday, November 06, 2007 6:50 AM > To: asterisk-users@lists.digium.com > Subject: [asterisk-users] Recording just first part of call? > > I know that I can record the contents of a call by calling Monitor() > or MixMonitor() from the dialplan just before invoking Dial(). > > I have a potential customer who wants only the first minute of each > call recorded (for identification purposes, without the > storage overhead > of keeping the complete call). > > Can anyone here think of the easiest way to do this? The only > possibilities > I can think of are: > > a) Add a new option to Monitor() or MixMonitor() to stop > recording after > a specified length of time. > > b) Record the whole call and post-process the recording file > to discard > all except the required first part. > > Any better ideas? > > Thanks in advance! > > Tony > > -- > Tony Mountifield > Work: [EMAIL PROTECTED] - http://www.softins.co.uk > Play: [EMAIL PROTECTED] - http://tony.mountifield.org > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users