[sr-dev] Re: [kamailio/kamailio] rtpengine: check corner-case, add comments and refactor some functions (PR #4097)