Hi, I see the close_snd_dev can be run in 2 thread Thread A (close_snd_timer_cb, as a result of pjsua_check_snd_dev_idle) Thread B, which call close_snd_dev directly When Thread A calls pjsua_var.snd_port = NULL, and Thread B try to use that snd_port, NULL exception can occur. The weird is that there are no LOCK and things went OK -- Khoa Pham HCMC University of Science www.fantageek.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130829/79f69061/attachment-0001.html>