David Mitchell wrote:
The SSID is in a Cisco-AVPair. I can include them all via
Start = "Connect: User: %{User-Name} ( client: %{Calling-Station-Id} location: %{WISPr-Location-Name}) %{Cisco-AVPair[*]}"
or the first one by using %{Cisco-AVPair[1]}. But I have no guarantee that the ssid will be the first AV pair.
Yes... there's no simple way to do that right now.
I've tried using unlang constructs to pull the data out, but can't figure out the right syntax. I'm trying something like the config below, just to see if the 'if/else' clauses even fire and they don't. No matter what I put in for the regexp, SSID never gets redefined to TRUE or FALSE. It always outputs as 'Junk'. I'm sure this is doable, I just don't know the exact syntax. Any ideas? Thanks in advance.
From linelog configuration:
Accounting-Request { SSID="Junk" Pairs = "%{Cisco-AVPair[0]}"
You can't do that. The configuration files are NOT a programming language. If you want to set temporary variables (really attributes), see the "update" section. Alan DeKok.