<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><tt>Hi Adrian,</tt></p>
<p><tt>Pretty annoying, indeed. The idea is that the "profile ID"
parameter must be integer or a pseudo-var holding an integer
(only). So you'd fix your code as follows:</tt></p>
<div><tt>$var(t_fd_p) = 1; # notice I removed the quotes!<br>
</tt></div>
<tt>
</tt>
<div><tt>check_fraud("$var(t_fd_user)", "$rU", "$var(t_fd_p)");</tt></div>
<div><tt><br>
</tt></div>
<div><tt>Best regards,<br>
</tt></div>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 01.11.2018 22:27, Adrian Fretwell
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1541104048.1085.33.camel@topgreen.co.uk">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>Hello,</div>
<div>I have been using the Fraud detection module for two years
now with no issues, but I only used one profile and call the
check_fraud function as follows:</div>
<div><br>
</div>
<div>check_fraud("$var(t_fd_user)", "$rU", "1");</div>
<div><br>
</div>
<div>Now I have the need for two profiles and wanted to call
check_fraud using a PV as the profile_id parameter like so:</div>
<div><br>
</div>
<div>$var(t_fd_p) = "1";</div>
<div>check_fraud("$var(t_fd_user)", "$rU", "$var(t_fd_p)");</div>
<div><br>
</div>
<div>But I always get a CORE PV error and the function fails. Is
what I want to do possible? What am I doing wrong?</div>
<div><br>
</div>
<div><br>
</div>
<div>Kind regards,</div>
<div>Adrian Fretwell</div>
<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>