No Joy Here: pjsua_destroy() by itself does not return. The other shutdown-group calls: pjsua_call_hangup_all(); pjsua_stop_worker_threads(); pjsua_acc_del(); Work fine by themselves, but pjsua_destroy() does not return regardless of (not) calling the other shutdown-group functions. Since I have a work-around (don't call pjsua_destroy()) I can proceed attempting to play a splash tone and recording the caller's message, this is not urgent to me. Do you wish for logs of tests to find out why pjsua_destroy() does not return? ________________________________ From: pjsip [pjsip-bounces@xxxxxxxxxxxxxxx] on behalf of Nir Avnery [nir at kaymera.com] Sent: Wednesday, November 05, 2014 4:59 AM To: pjsip at lists.pjsip.org Subject: Re: pjsua_destroy() fails to return Hello, We are experiencing the same issue on Android. Here are the logs: From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of Bill Gardner Sent: Wednesday, November 05, 2014 12:31 AM To: pjsip at lists.pjsip.org Subject: Re: pjsua_destroy() fails to return Try just calling pjsua_destroy, it will hangup calls and delete everything. The REGISTER you see is actually an unregister caused by deleting the account. Clients unregister by sending a REGISTER with expiration of 0. Bill On 11/4/2014 2:59 PM, Brunner, Brian T. wrote: Shutting down my app, I call pjsua_call_hangup_all(); pjsua_stop_worker_threads(); pjsua_acc_del(); pjsua_destroy(); pjsua_destroy() never returns. The last messages from PJ_LOG are (It seems to me that a registration attempt is underway. Confusing to me.) 18:44:27.461 pjsua_call.c !Hangup all calls.. 18:44:27.464 pjsua_acc.c Deleting account 0.. 18:44:27.465 pjsua_acc.c .Acc 0: setting unregistration.. 18:44:27.465 endpoint ..Request msg REGISTER/cseq=35846 (tdta0x1569f38) created. 18:44:27.466 tsx0x156afa4 ...Transaction created for Request msg REGISTER/cseq=35847 (tdta0x1569f38) 18:44:27.466 tsx0x156afa4 ..Sending Request msg REGISTER/cseq=35847 (tdta0x1569f38) in state Null 18:44:27.466 sip_resolve.c ...Target '192.168.1.141:0' type=Unspecified resolved to '192.168.1.141:5060' type=UDP (UDP transport) 18:44:27.466 pjsua_core.c ...TX 393 bytes Request msg REGISTER/cseq=35847 (tdta0x1569f38) to UDP 192.168.1.141:5060: REGISTER sip:192.168.1.141 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.229:5060;rport;branch=z9hG4bKPja4c88e04-0d60-466c-845d-553594feb977 Max-Forwards: 70 From: <sip:173@192.168.1.229><sip:173 at 192.168.1.229>;tag=c0cb1b9b-f177-4183-80c6-be32e7766387 To: <sip:173 at 192.168.1.229><sip:173 at 192.168.1.229> Call-ID: 87b57a8e-cd56-4e18-821e-5c79d19bc558 CSeq: 35847 REGISTER Contact: <sip:173 at 192.168.1.229:5060><sip:173 at 192.168.1.229:5060> Expires: 0 Content-Length: 0 --end msg-- 18:44:27.466 tsx0x156afa4 ...State changed from Null to Calling, event=TX_MSG In cb_on_reg_started 18:44:27.467 /home/advance/ ..cb_on_reg_started: Account 0 UnRegistration Leaving cb_on_reg_started 18:44:27.467 pjsua_acc.c ..Acc 0: Unregistration sent 18:44:27.467 pjsua_acc.c .Account id 0 deleted ACCOUNT DELETED! CALLING PJSUA_DESTROY()! 18:44:29.468 pjsua_core.c Shutting down, flags=0... 18:44:29.468 pjsua_core.c PJSUA state changed: RUNNING --> CLOSING 18:44:29.468 pjsua_call.c .Hangup all calls.. 18:44:29.469 pjsua_media.c .Call 0: deinitializing media.. 18:44:29.469 pjsua_pres.c .Shutting down presence.. 18:44:29.469 pjsua_aud.c .Closing sound device after idle for 1 second(s) In cb_on_snd_dev_operation ________________________________ ---------------------------------------------------------------------------------------------------------------------------- Confidentiality Requirement: This communication, including any attachment(s), may contain confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, you are hereby notified that you have received this communication in error and any unauthorized review, use, disclosure, dissemination, distribution or copying of it or its contents is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or e-mail and destroy all copies of this communication and any attachments. _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141106/52d192c7/attachment.html>