1. Instead of using *1 (automon) I need to record each phone call at a certain * box. 2. While already talking about this. I want to autodelete with cron at 2 am in the morning all recordings which are older than 50 hours! How can I do that? bye Ronald
1) You can use mixmonitor to record all calls. 2) You can write a cron that will delete all calls that are older than X amount of time. How do you do it ? Simple - Google is your friend. ----- Original Message ----- From: "Ronald Wiplinger" <ronald at elmit.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Monday, July 16, 2007 11:36 AM Subject: [asterisk-users] I want to record each phone call> 1. Instead of using *1 (automon) I need to record each phone call at a > certain * box. > > 2. While already talking about this. I want to autodelete with cron at 2 > am in the morning all recordings which are older than 50 hours! How can > I do that? > > bye > > Ronald > > _______________________________________________ > --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 >
Or you could just show him... :) Heres one I added, I have a global variable defined (RECORDSIP), so that I can switch the record on/off without having to hack the code all over the place... This uses Monitor instead of mixmonitor as I only want one file. In the dialplan I have: exten => s,1,ExecIF($["${RECORDSIP}"="TRUE"],Monitor,wav|${TIMESTAMP}-${CALLERID( num)}-${MACRO_EXTEN}-${UNIQUEID}.WAV) In the crontab, I have: @hourly rm -f `find /var/spool/asterisk/monitor -mmin +120` 2> /dev/null #Remove voicefile recordings after 2 hours A. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dovid B Sent: 16 July 2007 11:30 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] I want to record each phone call 1) You can use mixmonitor to record all calls. 2) You can write a cron that will delete all calls that are older than X amount of time. How do you do it ? Simple - Google is your friend. ----- Original Message ----- From: "Ronald Wiplinger" <ronald at elmit.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Monday, July 16, 2007 11:36 AM Subject: [asterisk-users] I want to record each phone call> 1. Instead of using *1 (automon) I need to record each phone call at a > certain * box. > > 2. While already talking about this. I want to autodelete with cron at2> am in the morning all recordings which are older than 50 hours! Howcan> I do that? > > bye > > Ronald > > _______________________________________________ > --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
On 7/16/07, Ronald Wiplinger <ronald at elmit.com> wrote:> > 1. Instead of using *1 (automon) I need to record each phone call at a > certain * box.exten => _1NXXNXXXXXX,1,MixMonitor(/var/spool/asterisk/monitor/${CALLERIDNUM}-${EPOCH}-${EXTEN}.wav) exten => _1NXXNXXXXXX,2,Dial(Zap/R1/${EXTEN},90 exten => _1NXXNXXXXXX,3,Hangup 2. While already talking about this. I want to autodelete with cron at 2> am in the morning all recordings which are older than 50 hours! How can > I do that?You can write a shell script to delete files in /var/spool/asterisk/monitor that are older than 50 hours. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070716/c6e98f04/attachment.htm
Hi, For recording your each phone call use this in your all dial-plan in extension.conf By these lines there will a time stamping in your all call, and call will be saved in date directory. Choose your GMT and Time , accordingly. exten => 1XXXXXXX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},GMT-5.5,%d%b%Y)}-${STRFTIME(${EPOCH},GMT-5.5,%H%M%S)}) exten => 1XXXXXXX,n,Monitor(wav,/home/recording${STRFTIME(${EPOCH},Asia/Calcutta,%Y%m%d)}/${CALLFILENAME},m) Regards, Keshav Ronald Wiplinger <ronald at elmit.com> wrote: 1. Instead of using *1 (automon) I need to record each phone call at a certain * box. 2. While already talking about this. I want to autodelete with cron at 2 am in the morning all recordings which are older than 50 hours! How can I do that? bye Ronald _______________________________________________ --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 --------------------------------- Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070717/1c2d1b89/attachment.htm