<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Ronald,<br>
<br>
The crash happens on a reply and not a request - see the frame 14,
where "buf" (the buffer containing the <br>
sip message) shows a reply like text.<br>
<br>
But the is_method() should not crash at all....before diving into
debugging:<br>
1) can you reproduce this crash ?<br>
2) before the crash, do you see any errors in the logs<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 01/13/2012 01:16 PM, Ronald Cepres wrote:
<blockquote
cite="mid:CAGCQ4Jr2HnLnwdx55-QD1mwYxhWtyczaWJXuHWHSmEFJ_mRFtQ@mail.gmail.com"
type="cite">Hi all,
<div><br>
</div>
<div>I'm using OpenSIPS 1.7.1 and based from the attached back
trace, it crashed when it is trying to parse the method of a
REGISTER message received by the server, triggered by pike
route.</div>
<div>
<br>
</div>
<div>Here is a snippet of my opensips.cfg:</div>
<div>...</div>
<div>
<div>loadmodule "pike.so"</div>
<div>modparam("pike", "sampling_time_unit", 30)</div>
<div>modparam("pike", "reqs_density_per_unit", 75)</div>
<div>modparam("pike", "check_route", "pike")</div>
</div>
<div>...</div>
<div>
<div>route[pike] {</div>
<div> if (($si == $Ri) || ($si == "192.168.1.60") || ($si
== "
192.168.1.61") || ($si == "
192.168.1.65")) {</div>
<div> drop;</div>
<div> }</div>
<div> if (!is_method("REGISTER")) {</div>
<div> drop;</div>
<div> }</div>
<div>}</div>
</div>
<div>
...</div>
<div><br>
</div>
<div>Basically, I just want to check REGISTER messages only on the
pike route. Does anyone have a workaround on this?</div>
<div><br>
</div>
<div>FWIW, should I also post this on the dev list?</div>
<div>
<br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>Regards,</div>
<div>Ronald</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
OpenSIPS solutions and "know-how"</pre>
</body>
</html>