I did a few things.
One is i hacked the callback for disconnect and put a
pjsua->destroy() there. That worked but gave ugly errors when
it quit.
I have since found a better way is to open the thing in a linux
screen and use perl's open3 to interact with it. It is a bit
complex to have perl run a screen and then interact with the ui,
but it works.
On 2017-10-27 10:43 AM, Aleksandar
Milenkovic wrote:
@bbnnvv aka Andrzej
the only way to "fully kill PJSIP library" is to do
something similar to System.unloadLibrary("pjsua2");
But since there is no such call, the closest thing you can
do is make a PendingIntent to restart your app; restarting the
app will clear out it's stack/memory and cause all libraries
to be unloaded and loaded again when the application starts.
However, I didn't notice that PJSIP requires such hacks
until now / yet. Only had such problems with Doubango.
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
|
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org