I'm meaning to reply to OP, but not sure how to do that yet. I had a similar issue with a slow/buggy video doorbell that spoke SIP.
In pjsip.conf I changed timer_b=32000 to 120000, the maximum length of call that doorbell can even make. Solved my calls being cut off at 32 seconds.