<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Folks,</p>
<p>I have managed to diagnose this a little further.</p>
<p>The call to the check_fraud() function only crashes OpenSIPS if a
rule is matched. For example: <br>
</p>
<p>If we call to profileid 3 and 3 does not exist in the table, then
all is OK.</p>
<p>If we call to profileid 2 which does exist but for a prefix that
does not exist, then all is OK.</p>
<p>If we call to profileid 2 which does exist and with a prefix that
does exist, then OpenSIPS crashes.</p>
<p>My database is Postgres V13.5.0 - opensips-postgres-module:amd64
3.2.3 <br>
</p>
<p>What can I do now to diagnose this further? Any help very much
appreciated.<br>
</p>
<p><br>
</p>
<font face="Verdana, Helvetica, Sans-Serif" color="#000000">Kind
regards,<br>
<br>
Adrian Fretwell<br>
<br>
Nottinghamshire<br>
UK.<br>
</font>
<p>On 12/12/2021 22:58, Adrian Fretwell wrote:</p>
<blockquote type="cite"
cite="mid:0b9e12ae-4b20-c594-4df5-363d8c27c83a@topgreen.co.uk">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hi All,</p>
<p>I am upgrading a routing script from v2.4 to v3.2 but I find
that the call to check_fraud crashes OpenSIPS, is the syntax for
my check_fraud call OK?</p>
<p>Script section:<br>
</p>
<p> xlog("L_NOTICE", "FD: $var(t_fd_user) - $rU -
$var(t_fd_p)");<br>
</p>
<p> check_fraud("$var(t_fd_user)", "$rU", $var(t_fd_p));<br>
</p>
<p><br>
</p>
<p>Log output:</p>
<p>Dec 12 22:28:25 sipproxy /usr/sbin/opensips[164806]: FD: OP0022
- 07770759924 - 2<br>
Dec 12 22:28:25 sipproxy /usr/sbin/opensips[164778]: <a
class="moz-txt-link-freetext" href="INFO:core:handle_sigs"
moz-do-not-send="true">INFO:core:handle_sigs</a>: child
process 164806 exited by a signal 8<br>
Dec 12 22:28:25 sipproxy /usr/sbin/opensips[164778]: <a
class="moz-txt-link-freetext" href="INFO:core:handle_sigs"
moz-do-not-send="true">INFO:core:handle_sigs</a>: core was not
generated<br>
Dec 12 22:28:25 sipproxy /usr/sbin/opensips[164778]: <a
class="moz-txt-link-freetext" href="INFO:core:handle_sigs"
moz-do-not-send="true">INFO:core:handle_sigs</a>: terminating
due to SIGCHLD<br>
Dec 12 22:28:25 sipproxy /usr/sbin/opensips[164798]: <a
class="moz-txt-link-freetext" href="INFO:core:sig_usr"
moz-do-not-send="true">INFO:core:sig_usr</a>: signal 15
received<br>
Dec 12 22:28:25 sipproxy /usr/sbin/opensips[164800]: <a
class="moz-txt-link-freetext" href="INFO:core:sig_usr"
moz-do-not-send="true">INFO:core:sig_usr</a>: signal 15
received<br>
</p>
<p><br>
</p>
<p>Any pointers greatly appreciated. Many thanks.<br>
</p>
<div class="moz-signature">-- <br>
</div>
<font face="Verdana, Helvetica, Sans-Serif" color="#000000">Kind
regards,<br>
<br>
Adrian Fretwell<br>
Nottinghamshire<br>
UK.<br>
</font><small><small><small> </small></small></small> <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
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>
</body>
</html>