<div dir="ltr"><div><div><div><div><div><div><div>Hi All<br><br></div>I have one Cisco 10000 NAS inmy network and this is the authenticate request :<br><br>Packet-Type = Access-Request<br> Cisco-AVPair = "client-mac-address=f43e.6166.dba0"<br>
Framed-Protocol = PPP<br> User-Name = "7727221873"<br> NAS-Port-Type = Ethernet<br> NAS-Port = 71468299<br> NAS-Port-Id = "0/0/0/0"<br> Cisco-AVPair = "circuit-id-tag=Kangan-1 atm 7/42:218:0.35"<br>
Service-Type = Framed-User<br> NAS-IP-Address = 10.150.21.218<br> Acct-Session-Id = "0442850B"<br> Calling-Station-Id = "f4:3e:61:66:db:a0"<br> Called-Station-Id = ""<br> SQL-User-Name = "7727221873"<br>
<br></div><br></div>i have tow Cisco-AVPair attribute in request and i need to process one of them that being started by 'circuit-id-tag=' so i use this :<br><br><br><br> if (Cisco-AVpair =~ /^circuit-id-tag=(.*)$/) {<br>
<br> update request {<br> Connect-Info := "%{1}"<br> } <br> }<br><br><br></div>but it is not working !<br>
<br></div>in similar case that i use regular expression for updating request it work well for example :<br><br><br> if (Cisco-AVpair =~ /^client-mac-address=([a-f0-9][a-f0-9])([a-f0-9][a-f0-9]).([a-f0-9][a-f0-9])([a-f0-9][a-f0-9]).([a-f0-9][a-f0-9])([a-f0-9][a-f0-9])$/) {<br>
if (!Calling-Station-Id) {<br> update request {<br> Calling-Station-Id := "%{1}:%{2}:%{3}:%{4}:%{5}:%{6}"<br> Called-Station-Id := "%{NAS-Identifier}"<br>
}<br><br> }<br> }<br><br><br><br><br></div>in last i think in this case because of multiply Cisco-AVPair attribute in request regular expression should be different but i can not find any source that can enplane this problem . <br>
<br><br><br></div>Best regards.<br><br><br><div><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></div>