Hi, imagine I need to log two extra fields in accounting:
- Source-IP
- Proxy-IP
"Source-IP" will be dynamic containing the value of $si.
"Proxy-IP" is a fixed string value = "88.88.88.88", but... how to log
this
value?:
* modparam("acc", "radius_extra", "Source-IP=$si;
Proxy-IP=88.88.88.88")
Of course the above line fails since the IP string should be a text so should
be between " ":
* modparam("acc", "radius_extra", "Source-IP=$si;
Proxy-IP="88.88.88.88"")
This fails obviously.
* modparam("acc", "radius_extra", "Source-IP=$si;
Proxy-IP=\"88.88.88.88\"")
This fails too.
* modparam("acc", "radius_extra", "Source-IP=$si;
Proxy-IP='88.88.88.88' ")
This fails too.
Is it impossible? any suggestion?
PD: Yes, I know I can do a bit "dirty" trick:
modparam("acc", "radius_extra", "Source-IP=$si;
Proxy-IP=$var(proxy-ip)")
...
$var(proxy-ip) = "88.88.88.88";
but I'd prefer not to do it.
--
Iñaki Baz Castillo