issue with reject function while handling interim-update accounting

Vinayak Makwana vinayak.makwana at ecosmob.com
Wed Dec 6 11:36:28 UTC 2023


Hello all,
             I am facing an issue in the accounting section. I do work on
freeradius accounting to handle START, STOP and INTERIM-UPDATE requests. So
in an interim-update request I am getting every 1 minute. In that request i
am checking user balance if user balance is not sufficient then i am using
reject function to send reject request to client. but when I do use the
reject function then this function directly rejects the interim-update
request without sending access-reject  to the client.
         File : sites-available/default
          Here's my code :
#########################################################

accounting {

if(Acct-Status-Type == "Interim-Update"){

                                        if ("%{user_balance}" == 0) {

                                                reject

                                        }



        }

}

#########################################################

Please suggest to me how I can send access-reject messages to client-server.



Thanks & Regards
Vinayak

-- 
*Disclaimer*

In addition to generic Disclaimer which you have agreed on 
our website, any views or opinions presented in this email are solely those 
of the originator and do not necessarily represent those of the Company or 
its sister concerns. Any liability (in negligence, contract or otherwise) 
arising from any third party taking any action, or refraining from taking 
any action on the basis of any of the information contained in this email 
is hereby excluded.



*Confidentiality*
This communication (including any 
attachment/s) is intended only for the use of the addressee(s) and contains 
information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, 
dissemination, distribution, or copying of this communication is 
prohibited. Please inform originator if you have received it in error.


*Caution for viruses, malware etc.*
This communication, including any 
attachments, may not be free of viruses, trojans, similar or new 
contaminants/malware, interceptions or interference, and may not be 
compatible with your systems. You shall carry out virus/malware scanning on 
your own before opening any attachment to this e-mail. The sender of this 
e-mail and Company including its sister concerns shall not be liable for 
any damage that may incur to you as a result of viruses, incompleteness of 
this message, a delay in receipt of this message or any other computer 
problems. 


More information about the Freeradius-Users mailing list