Thinking a bit about your case - do you know what all &quot;good&quot; traffic should look like?  If so - could you possibly create one REGEX statement that would say &quot;if it doesn&#39;t look like this - discard&quot; ?<div>

<br></div><div>I don&#39;t think $fu can be NULL unless it&#39;s actually not in the packet.  as far as I can tell - OS looks for the sip: and grabs everything behind it to the &gt; or ; or whatever is the next delimiter.  </div>

<div><br></div><div>There&#39;s always inserting each valid domain into the db and using db lookups for verification - dunno how many different domains you serve, but it&#39;s one way...<br><br><div class="gmail_quote">On Mon, Feb 14, 2011 at 11:47 PM, thrillerbee <span dir="ltr">&lt;<a href="mailto:thrillerbee@gmail.com">thrillerbee@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;m really trying to find methods of combating memory leaks that I now believe must be caused by some specific traffic pattern. As a result, I&#39;m trying to &quot;filter&quot; as much &quot;bad&quot; traffic as possible before it gets into the core of my network.<br>


<br>I <i>have</i> seen parse errors on the from header as I use uac_replace_from to normalize traffic to determine jurisdiction, etc. I&#39;d like to know how to identify that traffic, so, would $fu be NULL in this scenario? Is there a better method?<br>


<br>Thanks.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sun, Feb 13, 2011 at 7:13 AM, Tyler Merritt <span dir="ltr">&lt;<a href="mailto:tyler@fonality.com" target="_blank">tyler@fonality.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
I&#39;m relatively new to OpenSIPs myself - but in my various experiments - the idea that OS cannot parse a header is a bit foreign.  As a SIP proxy - it&#39;s job is more to use the routing logic in order to transmit packets from A through to C via B (OS itself).<div>




<br></div><div>I have sent packets with bogus From and To headers and they transmit to the end destination just fine.  I don&#39;t believe that your answer will be found in the format of the headers.  Rather, the best way to detect invalid headers (I think) would be to use TextOps modules and REGEX to act on the headers themselves and detect formats that you say are valid.  </div>




<div><br></div><div>OS is flexible enough to do this - plenty of logic in the IF, THEN, ELSE statements within routing blocks in order to check these headers against rules that you assert are &quot;valid&quot;.</div><div>




<br></div><div><br><br><div class="gmail_quote"><div><div></div><div>On Sat, Feb 12, 2011 at 7:57 AM, thrillerbee <span dir="ltr">&lt;<a href="mailto:thrillerbee@gmail.com" target="_blank">thrillerbee@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>

<div>What is the easiest way to identify traffic with invalid headers? Specifically, the from and to URIs.<br></div><div>For example, if OpenSIPS is unable to parse a from URI, would $fu be NULL?</div><div><br></div><div>




Thanks.</div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>