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>;tag=c0cb1b9b-f177-4183-80c6-be32e7766387 To: <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> 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141104/f0fb4160/attachment.html>