The SIP stack implementation in Python is good. But RTP part - Python can't keep up with real time requirement of RTP, bursting out packets every few milliseconds. Even after depending on C code for encoding/decoding. There once was an attempt to code softphone (shtoom -
https://sourceforge.net/projects/shtoom/files/ ) in pure python by Anthony Baxter and was later abandoned. There are some jobs that python can't cut it.