As suggested I just tried to replace operator = with := and even with == but reply message is not getting outputted :( Maybe I'm missing something? if (Calling-Station-Id == "%{sql: SELECT mac FROM `lrc_banlist` WHERE mac='%{Calling-Station-Id}'}") { reject update reply{ Reply-Message := "Hello Hello Hello" } } On Sat, Dec 26, 2009 at 12:08 PM, Alex M <freeradius@lrcommunications.net>wrote:
lol true! I always use that one for reply messages... i guess i was too sleepy last night :( Thank you!
On Sat, Dec 26, 2009 at 11:19 AM, Arran Cudbard-Bell < a.cudbard-bell@sussex.ac.uk> wrote:
On 26/12/2009 08:05, Alex M wrote:
Ok I still having trouble with this. Here is my code:
========================================================================================
if (Calling-Station-Id == "%{sql: SELECT mac FROM `lrc_banlist` WHERE mac='%{Calling-Station-Id}'}") { reject
update reply { Reply-Message = "Hello Hello Hello" }
}
Wrong operator.
You want := to overwrite the attribute value that already exists...
update reply { Reply-Message := "Hello Hello Hello" }