Yea, I was going to ask about other unhandled messages (notify/subscribe) in this case which might be sent to the system. That commonly happens when connected to gateways/switches. Thus you are correct in saying that call-legs are being allocated and not released since its not handled at the application level. That part needs to be added in order to address that part of the issue.
Jeff