<p>Ah, I see. The fun fact here is that, that field should contain just the number (according to the comments in the code), yet it doesn't. In the initial version of the code I advanced the pointer by CSEQ_LEN, which is defined as the length of "CSeq: " (note the space after the colon).</p>

<p>I think what we need to do here is to find the ':' there and trim the result.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/OpenSIPS/opensips/issues/165#issuecomment-35073164'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNzkwNzI5MiwiZGF0YSI6eyJpZCI6MjUxOTMzNzJ9fQ==--c2d39513d5b10f93ccf08ef89938920c21022e71.gif' height='1' width='1'></p>