BelledonneCommunications / linphone-sdk

Mirror for linphone-sdk (https://gitlab.linphone.org/BC/public/linphone-sdk.git)
GNU Affero General Public License v3.0
104 stars 80 forks source link

Android: lags when registering account #264

Open siper opened 1 year ago

siper commented 1 year ago

When registering account, have lags. In our application we can register 5+ accounts, and when slow internet connection each account freezes UI for 3-5 seconds. All sdk api called with Handler with Main Looper. Sdk version: org.linphone.minimal:linphone-sdk-android:5.1.65

Viish commented 1 year ago

Please attach logs showing the issue.

siper commented 1 year ago

logcat.txt

Device: Pixel 7 Pro, Android 13.

Viish commented 1 year ago

Please send logs from linphone SDK log collector feature or filter out logs from other apps as it is quite difficult to read. You can send them to me directly if you prefer: sylvain.berfini@belledonne-communications.com

Do you reproduce the issue with Linphone app from the Play Store?

siper commented 1 year ago

logcat.txt

Only Linphone tag logs. I will try reproduce issue on Linphone app.

siper commented 1 year ago

Can't reproduce this issue on Linphone app from the Play Store.

Viish commented 1 year ago

Can't reproduce this issue on Linphone app from the Play Store.

Did you configured the accounts the same way (UDP, etc...)? Using the same server?

siper commented 1 year ago

Yes, I'l try configure same accounts with same way.

siper commented 1 year ago

Extensions.txt SipManager.txt

Linphone initialization code (Kotlin) in our app. Maybe it helps with issue.

Viish commented 1 year ago

You didn't told me if you reproduced the issue with linphone-android.

siper commented 1 year ago

This issue reproduced if core initialized without config. If config file contains auth info and proxy configs all works well, and no lags.

siper commented 1 year ago

Hello. There is any news?

zzfnohell commented 7 months ago

It might caused only one udp package(SIP message) is processed per main loop iteration, we have encountered some similar issues.