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.<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">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 class="h5">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 class="h5">

<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">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>