twilio / voice-quickstart-android

Quickstart app for the Voice Android SDK
https://www.twilio.com/docs/api/voice-sdk/android/getting-started
MIT License
184 stars 140 forks source link

Call in progress failed due to bunch of reasons. #570

Closed JoshanTandukar closed 5 months ago

JoshanTandukar commented 11 months ago

A call either outgoing or incoming is getting failed after high jitter, lag and mos

Two participate are in a call, after certain moment one of the participant experience lag and jitter suddenly the call drops regardless of the duration of the call. Sometime they are in 5 minutes in call and call drops suddenly with connection failure, sometimes 15 minute and the list goes on.

Steps to Reproduce

  1. From the quick start run the application, follow all the process and register the device for incoming ready and outgoing ready.
  2. Connect to VPN and decrease the network speed as low as possible. And now either receive an incoming call or outgoing call.
  3. Repeat the process until the connection is failed between two parties.
  4. You will receive one of these issues Transport Error, Connection Error, Media Connection Failed, Request Timeout, DNS resolution failed and list goes on.

Code

You can use the quickstart

Expected Behavior

Expectation was to call get reconnect or rerouted to minimal latency servers or another optimal path rather that dropping the call.

Actual Behavior

Call drops abruptly and fires connection failed event

Reproduces How Often

lets say 200 calls either incoming or outgoing out of 4k calls

Twilio Call SID(s)

Wish not to tell here

Logs

Region mismatch, high jitter, high latency, high mos

Versions

All relevant version information for the issue.

Voice Android SDK

6.1.2

OS Version

Android 12

Device Model

Samsung SM-A217F

So my question is how to push those call quality, as I can see the logs which says the Twilio server connected is to gll ie global I guess and I can see the use of ICE servers and others, Are they handled automatically or should we have to handle them manually?

Also most of these failing call have Region Mismatch. Do we have to do something about it. Even if the call is being placed from same region i.e two countries in same continent . We are getting the above issue.

afalls-twilio commented 7 months ago

@JoshanTandukar can you enable logging via the setModuleLogLevel(..) for the following modules, CORE, SIGNALING & PLATFORM then search the adb logs for this line X-Twilio-CallSid: and post the callsid listed?

afalls-twilio commented 5 months ago

closing due to inactivity