Re: multiply Cisco-AVPair request attribute process by regular expression

2013-05-08 Thread Mehdi Ravanbakhsh
Dear Phil Mayers thanks for your reply i am finally do this in my PostgreSQL function before importing to database . Best regards. On Mon, May 6, 2013 at 6:07 PM, Phil Mayers p.may...@imperial.ac.uk wrote: On 04/28/2013 09:14 PM, Mehdi Ravanbakhsh wrote: i have tow Cisco-AVPair

Re: multiply Cisco-AVPair request attribute process by regular expression

2013-05-06 Thread Phil Mayers
On 04/28/2013 09:14 PM, Mehdi Ravanbakhsh wrote: 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 : if (Cisco-AVpair =~ /^circuit-id-tag=(.*)$/) { update request {

Re: multiply Cisco-AVPair request attribute process by regular expression

2013-04-29 Thread Mehdi Ravanbakhsh
Dear A.L.M.Buxey you still havent said what you actually want as values. you just say it doesnt work. you also ignore my request for debug output to see what/where. I need *Azadegan-1 atm 2/16:251:0.35* from this attribute :Cisco-AVPair = circuit-id-tag=Azadegan-1 atm 2/16:251:0.35 server

Re: multiply Cisco-AVPair request attribute process by regular expression

2013-04-29 Thread Olivier Beytrison
On 28.04.2013 23:30, Mehdi Ravanbakhsh wrote: DearOlivier I am try to test it but why first one is working ?!!! do you check my regular expression in second one ? i do it correctly ? I'm quoting the man page. man unlang : %{Attribute-Name[index]} Reference the N'th occurance of the

Re: multiply Cisco-AVPair request attribute process by regular expression

2013-04-29 Thread Mehdi Ravanbakhsh
Dear Olivier thanks for your information On Mon, Apr 29, 2013 at 11:36 AM, Olivier Beytrison oliv...@heliosnet.orgwrote: On 28.04.2013 23:30, Mehdi Ravanbakhsh wrote: DearOlivier I am try to test it but why first one is working ?!!! do you check my regular expression in second one

Re: multiply Cisco-AVPair request attribute process by regular expression

2013-04-29 Thread A . L . M . Buxey
Hi, i test it , but if i use Cisco-AVPair[0] and Cisco-AVPair[1] first one and second one is not working. you need to check which attribute is which. Do i need to to move them in some variable then use regular exertion ?(soothing like this) : value0 :=

multiply Cisco-AVPair request attribute process by regular expression

2013-04-28 Thread Mehdi Ravanbakhsh
Hi All I have one Cisco 1 NAS inmy network and this is the authenticate request : Packet-Type = Access-Request Cisco-AVPair = client-mac-address=f43e.6166.dba0 Framed-Protocol = PPP User-Name = 7727221873 NAS-Port-Type = Ethernet NAS-Port = 71468299 NAS-Port-Id =

Re: multiply Cisco-AVPair request attribute process by regular expression

2013-04-28 Thread A . L . M . Buxey
Hi, but it is not working ! what do you mean? what do you want to do (ie what do you want to have/get and what do you actually get?) - what does the server say/do (ie. run in full debug mode to see what its saying/doing to your logic. alan - List info/subscribe/unsubscribe? See

Re: multiply Cisco-AVPair request attribute process by regular expression

2013-04-28 Thread Mehdi Ravanbakhsh
Dear A.L.M.Buxey i have 2 Cisco-AVPair in request attribute : Cisco-AVPair = client-mac-address=90f6.52d2.384f and Cisco-AVPair = circuit-id-tag=Azadegan-1 atm 2/16:251:0.35 for first one i use : if (Cisco-AVpair =~ /^client-mac-address=([a-f0-9]

Re: multiply Cisco-AVPair request attribute process by regular expression

2013-04-28 Thread Olivier Beytrison
On 28 avr. 2013, at 22:58, Mehdi Ravanbakhsh baba...@gmail.com wrote: Dear A.L.M.Buxey i have 2 Cisco-AVPair in request attribute : Cisco-AVPair = client-mac-address=90f6.52d2.384f and Cisco-AVPair = circuit-id-tag=Azadegan-1 atm 2/16:251:0.35 You have multiple time the same

Re: multiply Cisco-AVPair request attribute process by regular expression

2013-04-28 Thread Mehdi Ravanbakhsh
Dear Olivier I am try to test it but why first one is working ?!!! do you check my regular expression in second one ? i do it correctly ? and is version 3 stable enough to use ? (your opinion ) Best regards. On Mon, Apr 29, 2013 at 1:48 AM, Olivier Beytrison oliv...@heliosnet.orgwrote:

Re: multiply Cisco-AVPair request attribute process by regular expression

2013-04-28 Thread A . L . M . Buxey
Hi, i have 2 Cisco-AVPair in request attribute : Cisco-AVPair = client-mac-address=90f6.52d2.384f and Cisco-AVPair = circuit-id-tag=Azadegan-1 atm 2/16:251:0.35 you still havent said what you actually want as values. you just say it doesnt work. you also ignore my request