<font face="tahoma,sans-serif">Just to add in,<br><br>I have tested and i know it works to compare it by enabled the checkval inside radius.conf<br><br>But now how can i check if the value of the CallingStationID is not empty? In Radius 2.x i can use the unlang below, but in Radius 1.x it's failed when i tried that.<br>
<br>Also i have enabled<br>notfound-reject = yes<br><br>in the checkval function, but i believe that only check the item-name and not the check-name.<br><br>Is there any way to do this from radius 1.x? I just in the position cant upgrade the radius at this time.<br>
<br>Thanks<br>Danny<br></font><br><div class="gmail_quote">On Thu, Mar 14, 2013 at 6:39 PM, Danny Kurniawan <span dir="ltr"><<a href="mailto:danny.kurniawan@fairchildsemi.com" target="_blank">danny.kurniawan@fairchildsemi.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="tahoma,sans-serif">Hi All,<br><br>All of the suggestion works fine :)<br><br>So just wondering, will this unlang method works for radius 1.x version? If its not working, what is the method that i can use in that version?<br>

<br>Thanks<br>Danny<br></font><br><div class="gmail_quote"><div><div class="h5">On Thu, Mar 14, 2013 at 2:58 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr"><div>On Thu, Mar 14, 2013 at 5:28 PM, Danny Kurniawan <span dir="ltr"><<a href="mailto:danny.kurniawan@fairchildsemi.com" target="_blank">danny.kurniawan@fairchildsemi.com</a>></span> wrote:<br>
</div><div class="gmail_extra">
<div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="tahoma,sans-serif">Thanks a lot for your reply.<br>


<br>Yes i got it working. However one more question :<br><br>what is the operator used to check if the value is empty ?<br><br>if(control:Calling-Station-Id == ""){<br>
        reject<br>    }<br><br>*not working for above<br><br></font></blockquote><div><br></div></div><div>Not sure. Maybe</div><div><br></div><div><span style="font-family:tahoma,sans-serif">if( !("%{control:Calling-Station-Id}") ){</span><br style="font-family:tahoma,sans-serif">


</div><div><font face="tahoma, sans-serif">   reject</font></div><div><span style="font-family:tahoma,sans-serif">}</span></div><span><font color="#888888"><div><span style="font-family:tahoma,sans-serif"><br>
</span></div><div>
-- </div><div>Fajar</div></font></span></div></div></div>
<br></div></div><div class="im">-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
<br clear="all"><br>-- <br><div><font face="tahoma, sans-serif">Best Regards,</font></div>

<div><font face="tahoma, sans-serif">Danny</font></div>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div><font face="tahoma, sans-serif">Best Regards,</font></div>
<div><font face="tahoma, sans-serif">Danny</font></div>