[asterisk-users] I want to record each phone call

Adrian Marsh Adrian.Marsh at ubiquisys.com
Mon Jul 16 07:15:11 CDT 2007


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 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
> 



_______________________________________________
--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



More information about the asterisk-users mailing list