Sanjivkumarroshan / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

No audio with Android Lollipop #2831

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what device / operating
system?
Samsung Galaxy S5 with Android Lollipop 5.0 preview.

Please provide any additional information below.
I'm running CSipSimple with codec G729 but no audio (outgoing/incoming) can be 
heard. Working fine with KitKat.

Original issue reported on code.google.com by massimo....@gmail.com on 14 Nov 2014 at 11:09

GoogleCodeExporter commented 9 years ago
Hi! Use device Nexus 5 d821 updated to Android 5 lollipop, audio work has 
improved, there is no latency microphone, there is no such as echo on Android 
4.4.4 Kit Kat! Good

Original comment by into...@gmail.com on 15 Nov 2014 at 8:50

GoogleCodeExporter commented 9 years ago
Reproduced also with Nexus 5 updated to Android 5.0.
No audio using codecs G729 or PCMA.
From the logs I can see a lot of strings like:

11-19 11:17:08.796: D/libpjsip(6645):  11:17:08.796   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.797: D/libpjsip(6645):  11:17:08.797   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.798: D/libpjsip(6645):  11:17:08.798   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.798: D/libpjsip(6645):  11:17:08.798   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.799: D/libpjsip(6645):  11:17:08.799   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.802: D/libpjsip(6645):  11:17:08.802   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.803: D/libpjsip(6645):  11:17:08.803   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.804: D/libpjsip(6645):  11:17:08.804   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.805: D/libpjsip(6645):  11:17:08.805   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.897: D/libpjsip(6645):  11:17:08.897   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.898: D/libpjsip(6645):  11:17:08.898   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.899: D/libpjsip(6645):  11:17:08.899   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame
11-19 11:17:08.900: D/libpjsip(6645):  11:17:08.900   Master/sound  Underflow, 
buf_cnt=0, will generate 1 frame

and

11-19 11:17:12.696: V/libpjsip(6645):  11:17:12.696 strm0xafe7f9b4  Jitter 
buffer starts returning normal frames (after 1 empty/lost)
11-19 11:17:12.796: V/libpjsip(6645):  11:17:12.796 strm0xafe7f9b4  jb 
updated(1), lvl=16 pre=0, size=9
11-19 11:17:12.898: V/libpjsip(6645):  11:17:12.898 strm0xafe7f9b4  Frame lost, 
recovered!
11-19 11:17:12.899: V/libpjsip(6645):  11:17:12.899 strm0xafe7f9b4  Jitter 
buffer starts returning normal frames (after 2 empty/lost)
11-19 11:17:12.899: V/libpjsip(6645):  11:17:12.899 strm0xafe7f9b4  Jitter 
buffer empty (prefetch=0), plc invoked
11-19 11:17:12.996: V/libpjsip(6645):  11:17:12.996 strm0xafe7f9b4  Jitter 
buffer starts returning normal frames (after 1 empty/lost)
11-19 11:17:12.998: V/libpjsip(6645):  11:17:12.998 strm0xafe7f9b4  Jitter 
buffer empty (prefetch=0), plc invoked
11-19 11:17:13.096: V/libpjsip(6645):  11:17:13.096 strm0xafe7f9b4  Jitter 
buffer starts returning normal frames (after 4 empty/lost)
11-19 11:17:13.099: V/libpjsip(6645):  11:17:13.099 strm0xafe7f9b4  Frame lost, 
recovered!
11-19 11:17:13.102: V/libpjsip(6645):  11:17:13.102 strm0xafe7f9b4  Jitter 
buffer starts returning normal frames (after 4 empty/lost)
11-19 11:17:13.198: V/libpjsip(6645):  11:17:13.198 strm0xafe7f9b4  Frame lost, 
recovered!
11-19 11:17:13.199: V/libpjsip(6645):  11:17:13.199 strm0xafe7f9b4  Jitter 
buffer starts returning normal frames (after 2 empty/lost)

Any clue? Is there any parameter (like ptime or default frequency) to be 
changed?
Thanks

Original comment by massimo....@gmail.com on 19 Nov 2014 at 10:39

GoogleCodeExporter commented 9 years ago
I unfortunately have no cycles available to provide more detailed debugging 
info ATM, but I am also experiencing no sound in calls (sound is lacking in 
both directions) after upgrading my Nexus 4 to Android 5.0. If it's not solved 
by next week I may be able to spend time then gathering more data.

Original comment by lainest...@gmail.com on 19 Nov 2014 at 3:52

GoogleCodeExporter commented 9 years ago
Same problem, Nexus 4 - Android 5.0_r6 build from AOSP.

Original comment by ja...@lansky.biz on 20 Nov 2014 at 11:20

GoogleCodeExporter commented 9 years ago
Same problem with newly updated Nexus 5. 

Original comment by krzyszto...@gmail.com on 20 Nov 2014 at 12:37

GoogleCodeExporter commented 9 years ago
Hi

Android 5.0 should be properly supported by nightly build version (that you can 
get and test from : http://nightlies.csipsimple.com/trunk/ ).
It is supported from last month but I am waiting for most my devices to 
actually switch to 5.0 so that all features can be validated before I release 
something stable on playstore. 

So can you test with nightly build?
(For those using g729 codec plugin, it should still be compatible)

Original comment by r3gis...@gmail.com on 20 Nov 2014 at 10:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks, tried r2440 trunk and it's _working_ fine (also with G729 codec)

Nexus 4, Android 5.0_r6 from AOSP.

Original comment by ja...@lansky.biz on 21 Nov 2014 at 11:23

GoogleCodeExporter commented 9 years ago
Thanks. Since i'm using an older version could you please point me to what area 
of the code specifically addresses the support for android 5?
Thanks in advance.

Original comment by massimo....@gmail.com on 21 Nov 2014 at 9:27

GoogleCodeExporter commented 9 years ago
Latest nightly works ok, thanks.

Original comment by krzyszto...@gmail.com on 22 Nov 2014 at 12:48

GoogleCodeExporter commented 9 years ago
Works well here (N4) too. You may want to reconsider waiting to put an updated 
build on the playstore. After all, what's there currently is apparently 
guaranteed to not work on 5.0, so a new build could only be an improvement :-)

Original comment by lainest...@gmail.com on 27 Nov 2014 at 3:33

GoogleCodeExporter commented 9 years ago
Hi
I am facing the same issue with Android Lollipop version. My application uses 
pjsip library for voice calls, but it is not working on Android 5.x (no audio 
heard).

Can you please help me with this. How did you make the app working for Android 
lollipop versions?

Thanks

Original comment by mail2son...@gmail.com on 27 May 2015 at 9:06