[OpenSIPS-Users] userblacklist strange behavior
Satish Patel
satish.txt at gmail.com
Thu Apr 30 22:34:19 CEST 2015
mysql> select * from userblacklist;
+----+--------------+--------+--------+-----------+
| id | username | domain | prefix | whitelist |
+----+--------------+--------+--------+-----------+
| 1 | 10000001 | | | 0 |
| 2 | 9198362323 | | | 0 |
+----+--------------+--------+--------+-----------+
If i set $avp(user) = 10000001; then it works!
but if i set $avp(user) = 9198362323; doesn't work what is the problem ?
route[user_blacklist] {
$avp(user) = 9198362323;
if (!check_user_blacklist("$avp(user)", "$avp(i:82)")) {
sl_send_reply("403", "User Blocked");
exit;
};
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150430/185f5d10/attachment.htm>
More information about the Users
mailing list