Is it possible to record Voip calls in Android? I tried using the below options for MediaRecorder.AudioSource
VOICE_DOWNLINK
VOICE_UPLINK
VOICE_CALL[ UPLINK + DOWNLINK]
VOICE_COMMUNICATION
Case 1: If I start recording before making the Voip call, then the recipient is not able to hear my voice. Also after recording I can hear only my voice. This suggests that the microphone is blocked by my app.
Case 2: If I try to record during Voip session then I get E/MediaRecorder﹕ start failed: -38
error.
I don't have any problem recording phone calls. Another thing which I observed is in Kitkat the error doesn't occur during Voip session and recording is successful but I am unable to hear recipient voice. The problem arises in Lollipop. I haven't tested on prior Kitkat versions.
Asked
Active
Viewed 1,080 times
4

curious_coder
- 2,392
- 4
- 25
- 44
-
Which Voip call u insterested to record? – Nauman Ash Aug 12 '15 at 06:14
-
Did you find any solution? Please share your experience – Naveed Ahmad Jan 20 '18 at 07:56
-
@NaveedAhmad: Unfortunately, I haven't found a proper solution till date – curious_coder Jan 20 '18 at 09:23
-
@curious_coder I posted a question, let see if someone give an response https://stackoverflow.com/questions/48354039/voip-call-recording – Naveed Ahmad Jan 20 '18 at 12:09
-
VoIP calls cannot be recorded in android as the microphone will be in use as you have gathered in your testing. For normal Phone calls microphone is not in use. – Srihari Karanth Jan 11 '19 at 07:02
-
@SrihariKaranth There are many Whatsapp call recorder apps out there, how can they work then? Did anyone find a solution to this? – Tal Mantelmakher Jan 23 '19 at 10:17
-
@TalMantelmakher, i am sure that doesn't work in most mobiles. definitely not in samsung, pixel, one+ phones. have you tried? – Srihari Karanth Feb 04 '19 at 06:55