Hi there, I'm using a perl script to perform some advanced accounting. The same script decides when to send COA to clients. When I use the debug mode I can see that im my RAD_CHECK there is an AVP that set COA-To-Send to yes. Contenu du hash RAD_CHECK: AVP : COA-To-Send, Valeur : yes ... I'm probably missing something as there is no action performed due to the existence of this AVP. ===== additionnal information ++++In the accounting section I have this: if("%{control:COA-To-Send}"=="yes") { update coa { User-Name = "%{request:User-Name}" } ++++++and in the output of radiusd I can see this if ("%{control:COA-To-Send}"=="yes") { EXPAND %{control:COA-To-Send} --> if ("%{control:COA-To-Send}"=="yes") -> FALSE ++++I also updated the file coa-originate with the requested information. Plz If you can give me any hint I will be very grateful. Thank you, Sara
If you want to send CoA packets, read raddb/sites-available/originate-coa Your configuration here will not do anything. I have no idea why you're doing it, or why you think it will work. Sent from my iPhone
On Jul 20, 2015, at 10:24 AM, ICHIBA Sara <ichi.sara@gmail.com> wrote:
Hi there,
I'm using a perl script to perform some advanced accounting. The same script decides when to send COA to clients. When I use the debug mode I can see that im my RAD_CHECK there is an AVP that set COA-To-Send to yes. Contenu du hash RAD_CHECK: AVP : COA-To-Send, Valeur : yes ... I'm probably missing something as there is no action performed due to the existence of this AVP.
===== additionnal information ++++In the accounting section I have this:
if("%{control:COA-To-Send}"=="yes") { update coa { User-Name = "%{request:User-Name}" } ++++++and in the output of radiusd I can see this
if ("%{control:COA-To-Send}"=="yes") { EXPAND %{control:COA-To-Send} --> if ("%{control:COA-To-Send}"=="yes") -> FALSE
++++I also updated the file coa-originate with the requested information.
Plz If you can give me any hint I will be very grateful.
Thank you, Sara - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
On 20-07-15 10:24, ICHIBA Sara wrote:
Hi there,
I'm using a perl script to perform some advanced accounting. The same script decides when to send COA to clients. When I use the debug mode I can see that im my RAD_CHECK there is an AVP that set COA-To-Send to yes. Contenu du hash RAD_CHECK: AVP : COA-To-Send, Valeur : yes
Depending on what version you're using, you might have to use RAD_CONFIG instead of RAD_CHECK. They're both mapped to the control list, but in version 3.0.x RAD_CONFIG overwrites the RAD_CHECK (which makes RAD_CHECK effectively a read-only version of the control list) -- Herwin Weststrate
participants (3)
-
Alan DeKok -
Herwin Weststrate -
ICHIBA Sara