RestComm / restcomm-android-sdk

Android Mobile SDK to easily integrate communication features (WebRTC, messaging, presence, voice, video, screensharing) based on RestComm into native Mobile Applications
http://www.restcomm.com/
GNU Affero General Public License v3.0
153 stars 109 forks source link

Call or message not received when application is removed from recent apps #772

Open ognjenns opened 6 years ago

ognjenns commented 6 years ago

When Olympus application is not active, its in the recent apps, and push notification is sent; The RCDevice is initialized and call/message is received. When application is not in the recent apps, the RCDevice is initialized but call/message is not received.

atsakiridis commented 6 years ago

Managed to reproduce the issue. Scenario:

  1. Open Android Olympus and setup push notifications; verify it's good by testing an incoming call after hitting home button
  2. Kill Android Olympus from recents
  3. Try a second incoming call (from web olympus) and at this point there's no INVITE coming in and in the caller side we get:
2017-13-12 17:11:34.359 INFO SIP message received: SIP/2.0 404 Cannot complete P2P call
To: <sip:antonis@cloud.restcomm.com>;tag=85454476_04905836_57a5b08a_7d9f64ce
Via: SIP/2.0/WSS 141.237.152.226:55125;branch=z9hG4bK-313035-9a58204ba8ac03d52f536655f026d734;rport=55125;received=141.237.152.226
CSeq: 2 INVITE
Call-ID: 1513177888911
From: "totos" <sip:totos@cloud.restcomm.com>;tag=1513177889567
Server: Restcomm 8.3.0-54
Contact: <sip:52.55.231.191:5060;transport=tcp>
Content-Length: 0

Analysis:

Here are the logs

ognjenns commented 6 years ago

Also to add that settings for the ICE Server where somehow mess up.

screen shot 2017-12-13 at 4 49 37 pm
atsakiridis commented 6 years ago

I'm pushing this issue to next sprint because it needs to be investigated in a different way. Here are the conclusions we reached today with @agafox and @ognjenns:

Action plan:

atsakiridis commented 6 years ago

Assigning to myself now that the scope of this issue changed to profiling the SDK

atsakiridis commented 6 years ago

Did some profiling and provided my input here

atsakiridis commented 6 years ago

There's on action on our side on this. But I'm leaving this open so that when server side is ready we can verify that the issue is fixed

SlobodanPrijic commented 6 years ago

@atsakiridis any update regarding this issue? Seems that calls are still cancelled to early (current cloud service).