[Freeswitch-users] adding policies

Juan Pablo L. jpablolorenzetti at hotmail.com
Thu Apr 30 23:14:51 MSD 2015


Hi, i m trying to enabled policies in my AAA, but i m getting the following error:

Thu Apr 30 13:02:22 2015 : Error: ~/etc/raddb/policy.d/filter[66]: Failed to find "reject" as a module or policy.
Thu Apr 30 13:02:22 2015 : Error: ~/etc/raddb/policy.d/filter[66]: Please verify that the configuration exists in ~/etc/raddb/mods-enabled/reject.
Thu Apr 30 13:02:22 2015 : Error: ~/etc/raddb/policy.d/filter[66]: Failed to parse "reject" entry.
Thu Apr 30 13:02:22 2015 : Error: ~/etc/raddb/policy.d/filter[65]: Failed to parse "if" subsection.
Thu Apr 30 13:02:22 2015 : Error: ~/etc/raddb/sites-enabled/default[220]: Errors parsing authorize section.

i have enabled policies in radius.conf:
policy {
        $INCLUDE policy.d/
}

i have defined the policy in the
~/etc/raddb/policy.d/filter
filter_username {
        if (User-Name != "%{tolower:%{User-Name}}") {
                reject
        }
}

and i configured sites-available/default to call the policy in the authorize section by simply 
calling the name of the filter:

filter_username


but i get the above error, i would appreciate where to look for more info about this. thanks!!


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150430/cc1dd978/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list