Dear All ? I make a call from my device and hold (re-INVITE) the other side phone. Then I make my system restart (call pjsua_destroy() then call pjsua_init() ) There is a assertion in pjsua_inin(). ? I find that if pjsua_destroy() does not destory transaction layer module successfully, it will assert in the pjsau_init() ? ?14:01:02.571?? pjsua_core.c? Destroying... ?14:01:02.571 sip_transactio? Stopping transaction layer module ?14:01:02.575 evsub0x1003d95? Subscription destroyed ?14:01:02.576 pjsua_advsip.c? PJCU advsip module unregistered ! ?14:01:02.577 sip_endpoint.c? Module "mod-pjsua-options" unregistered ?14:01:02.577 sip_endpoint.c? Module "mod-pjsua-im" unregistered ?14:01:02.577 sip_endpoint.c? Module "mod-pjsua-kpml" unregistered ?14:01:02.577 sip_endpoint.c? Module "mod-pjsua" unregistered ?14:01:02.577 sip_endpoint.c? Module "mod-stateful-util" unregistered ?14:01:02.577 sip_endpoint.c? Module "mod-refer" unregistered ?14:01:02.578 sip_endpoint.c? Module "mod-kpml" unregistered ?14:01:02.578 sip_endpoint.c? Module "mod-evsub" unregistered ?14:01:02.578 sip_endpoint.c? Module "mod-invite" unregistered ?14:01:02.578 sip_endpoint.c? Module "mod-100rel" unregistered ?14:01:02.579 sip_endpoint.c? Module "mod-ua" unregistered ?14:01:02.580 sip_transactio? Transaction layer module destroyed <===(key point, it no this message, it will assert in pjsua_init certainly.) ?14:01:02.580 sip_endpoint.c? Module "mod-tsx-layer" unregistered ?14:01:02.580 sip_endpoint.c? Module "mod-pjsua-advsip" unregistered ?14:01:02.581 sip_endpoint.c? Module "mod-msg-print" unregistered ?14:01:02.581 sip_endpoint.c? Module "mod-pjsua-log" unregistered ?14:01:02.592 tcpc0x1003db64? TCP transport destroyed normally ?14:01:02.593 tcpc0x1003e96c? TCP transport destroyed normally ?14:01:02.593??? tcplis:1025? SIP TCP listener destroyed ?14:01:02.594?? ctlslis:2002? SIP CTLS listener destroyed ?14:01:02.595 sip_endpoint.c? Endpoint 0x100306f4 destroyed ?14:01:02.596?? pjsua_core.c? PJSUA destroyed... ?14:01:02.621?? pjsua_core.c? Destroying... The assertion message is pjcu: ../src/pjsip/sip_transaction.c:437: pjsip_tsx_layer_init_module: Assertion `mod_tsx_layer.endpt==((void *)0)' failed. ? It does not happen every time, but very frequently in the test. ? I have tried to patch the code from https://trac.pjsip.org/repos/ticket/1033, but no work. I think it is different issue. ?How can I improve it, let it can destory all module and init pjsua successfully? ? Best Regards DaCheng ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100320/9f92e9c2/attachment.html>