<div dir="ltr"><div><div>Dear <span name="Olivier Beytrison" class="">Olivier<br><br></span></div><span name="Olivier Beytrison" class="">thanks for your information<br><br></span></div><span name="Olivier Beytrison" class=""><br>
</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 11:36 AM, Olivier Beytrison <span dir="ltr"><<a href="mailto:olivier@heliosnet.org" target="_blank">olivier@heliosnet.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 28.04.2013 23:30, Mehdi Ravanbakhsh wrote:<br>
> DearOlivier<br>
<div class="im">><br>
> I am try to test it but why first one is working ?!!! do you check my<br>
> regular expression in second one ? i do it correctly ?<br>
<br>
</div>I'm quoting the man page.<br>
<br>
man unlang :<br>
%{Attribute-Name[index]}<br>
Reference the N'th occurance of the given attribute. The syntax<br>
%{<list>:Attribute-Name[index]} may also be used. The indexes start at<br>
zero. This feature is NOT available for non-attribute dynamic<br>
translations, like %{sql:...}.<br>
<br>
For example, %{User-Name[0]} is the same as %{User-Name}<br>
<br>
The variable %{Cisco-AVPair[2]} will reference the value of the THIRD<br>
Cisco-AVPair attribute (if it exists) in the request packet,<br>
<br>
In your request you have 3 Cisco-AVPair. I don't know if they always<br>
come in the same order or what, but looking at your request<br>
%{Cisco-AVPair[0]} = "client-mac-address=90f6.52d2.384f"<br>
%{Cisco-AVPair[1]} = "connect-progress=LAN Ses Up"<br>
%{Cisco-AVPair[2]} = "circuit-id-tag=Azadegan-1 atm 2/16:251:0.35"<br>
<br>
Please NOTE the %{ } surrounding the attribute and its index.<br>
<div class="im"><br>
> and is version 3 stable enough to use ? (your opinion )<br>
<br>
</div>Version 3 is a living thing. It can be stable one day and buggy the next<br>
one.<br>
I'm running Version 3 in production. I've froze the branch, tested it<br>
carefully, cherry-picked the fix I needed, and deployed it. Version 3<br>
brings some nice things and an important performance improvement.<br>
<span class="HOEnZb"><font color="#888888"><br>
Olivier<br>
<br>
--<br>
<br>
Olivier Beytrison<br>
Network & Security Engineer, HES-SO Fribourg<br>
Mail: <a href="mailto:olivier@heliosnet.org">olivier@heliosnet.org</a><br>
</font></span><div class="HOEnZb"><div class="h5">-<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></div></blockquote></div><br></div>