<p><a href="https://github.com/bogdan-iancu" class="user-mention">@bogdan-iancu</a> what we need is a way to fetch the actual cseq for a given request or reply. Regardless of cseq mangling happening or not. Otherwise MediaProxy could get confused because it relies on incrementing cseqs.The code there was written before dialog pinging was a thing, so it may need adjustments.</p>

<p>I don't know the transaction internals so well, but looks to me like we still would not get the right cseq in case of an in-dialog request after the cseq was mangled by OpenSIPS.</p>

<p>Since other modules could need the same, it would be nice to have a utility function somewhere, which does exactly that: return the cseq for the given SIP message, looking in the transaction if necessary.</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-47644872">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxOTgzMzI4NCwiZGF0YSI6eyJpZCI6MjUxOTMzNzJ9fQ==--118863dbb76a1819c12e39a400429b5cefe2dfdb.gif" width="1" /></p>