<p>Since this is an options packet it will not need to be re-transmitted so i generated a random 7 digit number for each option packet and appended it to the RFC 3261 string "z9hG4bK". My C skills are not great but this is what i did to fix this for myself, if someone can come up with a better method and commit to the code that will be great.</p>

<p>In modules/nathelper/sip_pinger.h</p>

<p>Line 31:</p>

<pre><code>#include&lt;string.h&gt;
</code></pre>

<p>Line 145:</p>

<pre><code>const long MAX_BRANCHID = 9999999;
const long MIN_BRANCHID = 1000000;
long result=(long)(rand()/(float)2147483647 * (MAX_BRANCHID-MIN_BRANCHID) + MIN_BRANCHID);
char branch_id[7];
sprintf(branch_id, "%ld", result);
char branch[22]=";branch=z9hG4bK";
strcat(branch,branch_id);
if ( sipping_method.len + 1 + curi-&gt;len + s_len(" SIP/2.0"CRLF) +
    s_len("Via: SIP/2.0/") + st.len + s-&gt;address_str.len +
    1 + s-&gt;port_no_str.len + strlen(branch) +
</code></pre>

<p>Line 180:</p>

<pre><code>append_fix( p, branch);
append_fix( p, CRLF"Route: ");
</code></pre>

<p>Line 185:</p>

<pre><code>append_fix( p, branch);
append_fix( p, CRLF"From: ");
</code></pre>

<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/145#issuecomment-29628210'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/cHRwG-eeZpfKR_UBFXzvRLiuI8LgSFFr8El3L9iq1LcqdioAYs6Ov8gAR1IdzzLg.gif' height='1' width='1'></p>