4

i'm trying to do a SIP call in my android. Sound works great on the first call, but when this call is ended and i start a second call, sound is interrupted and i get following warning (multiple lines per second):

W/AudioGroup﹕ device loop timeout`

I start the call with:

mSipManager.makeAudioCall(
    getAccount().getLocalSipProfile(),
    getAccount().getPeerSipProfile(),
    new SipCallListener(),
    0
);

Contents of call listener:

@Override
public void onCallEstablished(SipAudioCall call) {
    call.startAudio();
}

@Override
public void onCallEnded(SipAudioCall call) {
    call.close();
}

// ...

Any idea how to solve that problem?

Thanks in advance

Matthias

// EDIT: Currently i can reproduce this behaviour only on a Nexus 5 with Dalvik runtime. Changing the Runtime to ART "solves" the problem for this device, but it's not an acceptable solution.

Nova Entropy
  • 5,727
  • 1
  • 19
  • 32
Matthias Lohr
  • 1,696
  • 2
  • 20
  • 32
  • I had the same problem. In my case `startAudio()` was called twicely and I got `loop timeout`. So I left only one call to `startAudio()` outside `onCallEstablished()` and problem were solved. Target: Nexus 7. If you are still working on this problem just make a simpliest test and/or post your full code to describe this problem. – Michael Jun 04 '14 at 14:27
  • I am also seeing this log message multiple times, but I only have the one call to `startAudio()`. Is there anything else to look for? – Nova Entropy Aug 29 '14 at 12:48
  • I have no idea. Problem still unsolved. – Matthias Lohr Sep 01 '14 at 07:18
  • For me, it doesn't always happen, and it only happens on Samsung devices, not Nexus ones. – Nova Entropy Sep 02 '14 at 09:19
  • In case anyone else is having this issue, I am still facing it on Samsung devices, but not just with SIP calls, but with RTP streams initiated without the SIP stack too. So far I still have no idea what causes it, although it seems to be worse in larger applications. Taking the code out into a "Hello World" type application fixes it. – Nova Entropy Jan 05 '15 at 15:09

0 Answers0