perl and COA

Alan DeKok aland at deployingradius.com
Mon Jul 20 10:38:05 CEST 2015


  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 at 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



More information about the Freeradius-Devel mailing list