Hi, I am working on an iPhone app that uses PJSip, in the latest trunk (as of friday 17th Dec) I started experiencing problems - in my app when I detect a change from Wifi to 3G connectivity I call pjsua_destroy(); then I get: 17:10:25.777 pjsua_core.c Destroying... 17:10:25.777 sip_transactio Stopping transaction layer module 17:10:25.777 sip_endpoint.c Module "mod-unsolicited-mwi" unregistered 17:10:25.777 sip_endpoint.c Module "mod-pjsua-options" unregistered 17:10:25.777 sip_endpoint.c Module "mod-pjsua-im" unregistered 17:10:25.777 sip_endpoint.c Module "mod-pjsua-pres" unregistered 17:10:25.777 sip_endpoint.c Module "mod-pjsua" unregistered 17:10:25.777 sip_endpoint.c Module "mod-stateful-util" unregistered 17:10:25.777 sip_endpoint.c Module "mod-refer" unregistered 17:10:25.777 sip_endpoint.c Module "mod-mwi" unregistered 17:10:25.777 sip_endpoint.c Module "mod-presence" unregistered 17:10:25.777 sip_endpoint.c Module "mod-evsub" unregistered 17:10:25.778 sip_endpoint.c Module "mod-invite" unregistered 17:10:25.778 sip_endpoint.c Module "mod-100rel" unregistered 17:10:25.778 sip_endpoint.c Module "mod-ua" unregistered 17:10:25.778 sip_transactio Transaction layer module destroyed 17:10:25.778 sip_endpoint.c Module "mod-tsx-layer" unregistered 17:10:25.778 sip_endpoint.c Module "mod-msg-print" unregistered 17:10:25.778 sip_endpoint.c Module "mod-pjsua-log" unregistered 17:10:25.791 tcpc0x898a14 TCP transport destroyed normally 17:10:25.791 tcplis:49264 SIP TCP listener destroyed 17:10:25.791 sip_endpoint.c Endpoint 0x855664 destroyed 17:10:25.791 pjsua_core.c PJSUA destroyed... then I re-init pjsip (as I did at startup (same code)) but this time I see: 17:10:25.793 os_core_unix.c pjlib 1.8.10-trunk for POSIX initialized 17:10:25.801 pjlib select() I/O Queue created (0x855d40) 17:10:25.801 sip_endpoint.c Module "mod-msg-print" registered 17:10:25.801 sip_endpoint.c Module "mod-pjsua-log" registered 17:10:25.801 sip_endpoint.c Module "mod-tsx-layer" registered 17:10:25.801 sip_endpoint.c Module "mod-stateful-util" registered 17:10:25.801 sip_endpoint.c Module "mod-ua" registered 17:10:25.801 sip_endpoint.c Module "mod-100rel" registered 17:10:25.801 sip_endpoint.c Module "mod-pjsua" registered 17:10:25.801 sip_endpoint.c Module "mod-invite" registered 17:10:25.801 pjsua_core.c Trying STUN server stun.uk.bababoo.net:3478 (1 of 1).. 17:10:25.847 coreaudio_dev. dev_id 0: iPhone IO device (in=1, out=1) 8000Hz 17:10:25.847 coreaudio_dev. Error: cannot initialize audio session services (1768843636) 17:10:25.847 pjsua_media.c Media stack initialization has returned error: Unknown error -1768403636 [status=-1768403636] 17:10:25.847 pjsua_core.c Shutting down... 17:10:25.847 pjsua_pres.c Shutting down presence.. 17:10:25.847 pjsua_media.c Shutting down media.. Assertion failed: (sess->stun_sock==((void *)0)), function destroy_stun_resolve, file ../src/pjsua-lib/pjsua_core.c, line 956. Program received signal: ?SIGABRT?. To be sure I have reverted to rev r3397 and it works properly. Regards, -- Tony Million -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101218/f746eef9/attachment.html>