[reSIProcate] [resiprocate] Ignore trailing null bytes in SIP keepalives (#38)

Adrian A notifications at github.com
Wed Feb 24 15:59:01 CST 2016


New versions of Asterisk (12+, based on pjsip stack) send keep alive packets as '\r\n\0' instead of '\r\n\r\n'. Ignoring the fact that these are treated as "pong" packets, the trailing null byte mess up the preprocessor state such that any subsequent SIP message cannot be parsed properly and the stack sends 400 error.
This change makes the "ping" and "pong" packet processing ignore trailing null bytes.
You can view, comment on, or merge this pull request online at:

  https://github.com/resiprocate/resiprocate/pull/38

-- Commit Summary --

  * Ignore trailing null bytes when processing ping/pong SIP keep alive packets

-- File Changes --

    M resip/stack/ConnectionBase.cxx (12)

-- Patch Links --

https://github.com/resiprocate/resiprocate/pull/38.patch
https://github.com/resiprocate/resiprocate/pull/38.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/resiprocate/resiprocate/pull/38
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20160224/24daa4b4/attachment.htm>


More information about the resiprocate-devel mailing list