<div dir="ltr">I've been looking into this and once it's hung, you can hook into the thread with the highest cpu usage with gdb and it appears that python-sipsimple is stuck in the alsa function `snd_pcm_drain (pcm);` (<a href="https://github.com/AGProjects/python-sipsimple/blob/master/deps/pjsip/pjmedia/src/pjmedia-audiodev/alsa_dev.c#L619">https://github.com/AGProjects/python-sipsimple/blob/master/deps/pjsip/pjmedia/src/pjmedia-audiodev/alsa_dev.c#L619</a>). I'm not sure if it's the right approach, but the documentation for that function says:<div><div><br></div><div>"For stopping the PCM stream immediately, use ::snd_pcm_drop() instead."</div><div><br></div><div><br></div><div>Switching to that function fixes things for me.<br><div><br></div><div><br></div></div></div></div>