[OpenSIPS-Users] Fraud Detection Module:check_fraud - problem with profile_id
Liviu Chircu
liviu at opensips.org
Fri Nov 2 05:02:03 EDT 2018
Hi Adrian,
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:
$var(t_fd_p) = 1; # notice I removed the quotes!
check_fraud("$var(t_fd_user)", "$rU", "$var(t_fd_p)");
Best regards,
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 01.11.2018 22:27, Adrian Fretwell wrote:
> Hello,
> 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:
>
> check_fraud("$var(t_fd_user)", "$rU", "1");
>
> Now I have the need for two profiles and wanted to call check_fraud
> using a PV as the profile_id parameter like so:
>
> $var(t_fd_p) = "1";
> check_fraud("$var(t_fd_user)", "$rU", "$var(t_fd_p)");
>
> But I always get a CORE PV error and the function fails. Is what I
> want to do possible? What am I doing wrong?
>
>
> Kind regards,
> Adrian Fretwell
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20181102/2ce0d673/attachment.html>
More information about the Users
mailing list