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