W dniu 13.05.2013 15:07, Alan DeKok pisze:
Maja Wolniewicz wrote:
When I put something like that into unlang rules:
%{%{Operator-Name}:-} That should be a parse error.
my server fails with ASSERT FAILED src/main/xlat.c[1509]: node->alternate != NULL
The same is with other attribute names. When I put non empty default value all goes smoothly. The solution is to do a "git pull", and re-build. I've just pushed a fix. Thanks.
Now update reply { Chargeable-User-Identity = "%{md5:${policy.cui_hash_key}%{tolower:%{User-Name}}%{%{Operator-Name}:-}}" } produces (10) ERROR: %{md5:changeme%{tolower:%{User-Name}}%{%{Operator-Name}:-}} (10) ERROR: ^ Empty expansion is invalid is it right behaviour? It works in FR2. Maja
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
-- Maja Gorecka-Wolniewicz mgw@umk.pl Uczelniane Centrum Information & Communication Informatyczne Technology Centre Uniwersytet Mikolaja Kopernika Nicolaus Copernicus University Coll. Maximum, pl. Rapackiego 1, 87-100 Torun, Poland tel.: +48 56-611-27-40 fax: +48 56-622-18-50 tel. kom.: +48-693032574