Definitive Guide to Recording Phone Calls

1,158 views
Skip to first unread message

Guy Pasqualini

unread,
Sep 26, 2011, 5:05:03 PM9/26/11
to Tasker
Ok... Let's begin by stating the obvious... most states in the US
allow for recording conversations as long as 1 party is aware that the
conversation is being recorded, some DO NOT. Your responsibility to
find out and your responsible for the consequences etc...

Now on to the meat.


Recently my phone decided to blow up during the latest OTA update and
I was unprepared, long story short I lost my recording tasks.

I looked all over for guidance and read all the wikis and suggestions
and even posted a few times but nothing did what I wanted it to do...
which was hands off recording of all calls divided into separate
directories for incoming and outgoing calls with named files showing
the callers name, date and time they called.

Everything I read let me do much of this but required either pressing
a button or dumping everything into one directory, plus the outgoing
name could only be written AFTER the call was over as the %coname
variable only updated once the variable (last called) was updated.

I had it partially working (incoming calls were easy and worked from
the word go) but toiled over how to handle outgoing calls since I
needed them divided into their own directory I had to differentiate
between the 2 and deal with them independently. I had over 7 profiles
and 6 tasks and it still was not working until I decided not to fight
the variables but work with them... after taking parts from a few
wikis and editing extensively for my needs this is what I came up
with:



Profiles:

[Event]
Phone Ringing - priority 10 set %recording = 1
Phone Offhook - Priority 10 If %recording ! set, variable set
%recording = 2


Record Call (event phone offhook priority 1) - If %recording = 1,
record audio /my documents/recordings/incoming/%cname %cdate %ctime,
endif. If %recording=2, record audio /my documents/recordings/
Outgoing, endif

Stop Record Call (event phone idle)- If %recording = 1, record audio
stop, endif. If %recording = 2, record audio stop, move /my documents/
recordings/Outgoing /my documents/recordings/outgoing/%coname %codate
%cotime.3gp, end if. Variable clear %recording


You can add things to this like incall volume = 5, if not bluetooth
connected (my car does not like tasker), and change the variable name
if you like.

Plus anyone that has an even better way to do this please speak up the
only 'possible' clash I can see that might occur is since i have 2
profiles that use the phone offhook event there might be an occasion
where one would fire before the other even with the priorities clearly
defined and the call would not get recorded. I suppose I could change
the if %recording =2 to if %recording is != 1 but is set or something
but this works as is.


Thanks for all who helped and feel free to improve/streamline as you
see fit!



Rob

unread,
Sep 27, 2011, 5:40:35 AM9/27/11
to Tasker
I have the identical tasks to you. My only problem is that the caller
number (and outgoing call number) are always one behind and never in
sync.

Please copy your tasks here or explain exactly how they work and if
your %CONUM and %CNUM variables actually store the correct value. I
have read about assigning the variable to another variable first, etc.
bu nothing works.

THANKS!




On Sep 26, 11:05 pm, Guy Pasqualini <gaetanopasqual...@gmail.com>
wrote:

UncleMike

unread,
Sep 27, 2011, 7:26:25 PM9/27/11
to tas...@googlegroups.com
To avoid the possible conflict between the two profiles that both use the Phone Offhook event, you could to this instead:

Profile 1: Begin Recording Incoming Call
Context: Incoming Call
Context: Phone Offhook
Task:
record audio /my documents/recordings/incoming/%cname %cdate %ctime

Profile 2: Begin Recording Outgoing Call
Context: Incoming Call [Invert]
Context: Phone Offhook
record audio /my documents/recordings/Outgoing

Profile 3: Stop Recording
Context: Phone Idle
Task:
Record Audio Stop
Move /my documents/recordings/Outgoing.3gp /my documents/recordings/outgoing/%coname %codate 
%cotime.3gp

Toby

unread,
Sep 27, 2011, 8:16:31 PM9/27/11
to Tasker
That's genius... invert Incoming call.... that's exactly why I posted
this so someone smarter would post exactly what you posted!

Rob all you do is use the move command to rename the file after it's
been recorded. Look closely at the directory and name of the outgoing
call.... I place it a directory above where I actually want it then
when the call is complete I move (rename) it to the directory I want
it in. This allows for the %coname and %conum variables to update and
I don't get the lag you talked about (and I do know what you were
talking about it was the whole reason I posted this).

Happy recording all!
Reply all
Reply to author
Forward
0 new messages