Commits were pushed for this issue, still willing to know about the CPU, OS and compiler because the right shifting is platform specific when comes to signed numbers. The code was mainly targeting ASCII encoding/deconding (positive bytes), characters in the sip message, but it is better to support every case.