<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body><div>Hi Liviu,</div><div>Thankyou for the information.</div><div><br></div><div>I'm actually pulling the profile id from a char column in the Db so I just need to make sure I perform and integer conversion on it.</div><div><br></div><div>Many thanks,</div><div>Adrian. </div><div><br></div><div>On Fri, 2018-11-02 at 11:02 +0200, Liviu Chircu wrote:</div><blockquote type="cite">
<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>
<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>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre></blockquote></body></html>