perl and COA

ICHIBA Sara ichi.sara at gmail.com
Mon Jul 20 10:24:12 CEST 2015


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


More information about the Freeradius-Devel mailing list