[OpenSIPS-Users] Bug in fraud_detection module (v3.6.9): time and day filters ignored with multiple rules per prefix
Alex Bueno
axelsoftware at gmail.com
Sun Oct 25 16:45:23 UTC 2026
*Hi everyone,*
I'm currently running OpenSIPS *3.6.9* (installed from the official Debian
repository) and I've run into an issue with the fraud_detection module
regarding time and day-of-the-week evaluation when multiple rules are
defined for the same prefix.
*Scenario:* I have multiple rules configured for prefix 004 under profileid
= 1:
1.
07:00 to 20:59, Mon-Fri
2.
00:00 to 06:59, Mon-Fri
3.
21:00 to 23:59, Mon-Fri
4.
00:00 to 23:59, Sat,Sun
*The Problem:* Even when testing on a Sunday (e.g., at 15:30), OpenSIPS
evaluates and matches the first rule in the sequence (the one configured
for Mon-Fri), completely ignoring the daysoftheweek and time interval
constraints.
If I reorder or change the ruleid so that a Mon-Fri rule comes first, it
triggers immediately regardless of the current system day and time. The
system time and timezone on the server are correct, and fraud_reload
executes successfully.
It seems that in version 3.6.9, the parser or internal evaluation for time
intervals (start_hour/end_hour) and days (daysoftheweek) fails to correctly
filter subsequent rules, falling back to the first loaded rule for the
prefix.
Has anyone else experienced this behavior in 3.6.9, or is there any known
patch/workaround for this?
Thanks in advance for your help,
*Àlex Bueno*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20261025/e6d1cd58/attachment.html>
More information about the Users
mailing list