pjsip-android icon indicating copy to clipboard operation
pjsip-android copied to clipboard

Resolving stun servers on main thread creates ANR from Android 11 and above.

Open asimhayat65 opened this issue 2 years ago • 1 comments

Firstly i am resolving this stun server "stun2.l.google.com:19302" which has high priority.

StringVector servers = new StringVector(); if (stunservers == null || stunservers.size() < 1) { servers.add("stun2.l.google.com:19302"); } else { for (String s : stunservers) { servers.add(s); } }

    mEndpoint.natUpdateStunServers(servers, true);

asimhayat65 avatar Jan 30 '23 07:01 asimhayat65

I'm still trying to figure out how to move everything on a background thread while avoiding the past crashes

aenonGit avatar Aug 05 '24 15:08 aenonGit