< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

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


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

File Changes

Patch Links:


Reply to this email directly or view it on GitHub.