doubts about the functions in the unlang

Jorge Pereira jpereiran at gmail.com
Thu Jun 11 01:06:22 CEST 2015


Hi,

  someone know if have some way to do something like.

int-require.by {

     if (!$1) {
         update {
             reply:Reply-Message:= "The $1 is required"
         }
         reject
     }
     else {
         noop
     }
 }

and calling like

int-require.by "Acct-Session-Id"

--
Jorge Pereira


More information about the Freeradius-Users mailing list