Hi, I'm using the swig wrapped pjsua2 library on Android to provide a floating video chat window in an Android service. This works beautifully the first time around. But if I try to stop and re-launch the service, I get an exception during Account.modify(): D/FloatingWindowService: Title: pjsua_acc_modify(id,
&pj_acc_cfg) When stopping my service, I'm using the same set of calls that the default sample pjsua2 android app uses to shut down the pjsip library: Runtime.getRuntime().gc(); /* Shutdown pjsua. Note that Endpoint destructor will also invoke * libDestroy(), so this will be a test of double libDestroy(). */ try { ep.libDestroy(); } catch (Exception e) { Log.d(TAG, "Problem destroying SIP endpoint: " + e.getMessage()); } /* Force delete Endpoint here, to avoid deletion from a non- * registered thread (by GC?). */ ep.delete(); ep = null;Notice there is a catch handler here, and it doesn't get called... So it seems shutdown was OK??? Any suggestions? -Caleb |
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org