help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnu-radius] av pair parse


From: Sergey Poznyakoff
Subject: Re: [Help-gnu-radius] av pair parse
Date: Tue, 29 Jun 2004 11:28:06 +0300

address@hidden wrote:

> h323-disconnect-cause = h323-disconnect-cause=11
> 
> How can I convert it to simply 'h323-disconnect-cause=11' ?

integer
rewrite_h323()
{
        if (%[h323-disconnect-cause] =~
              "h323-disconnect-cause=\([0-9][0-9]*\)" )
              %[h323-disconnect-cause] = \1;
        return 0;
}

Apply the function using Rewrite-Function attribute from your
raddb/hints. See
http://www.gnu.org/software/radius/manual/html_node/radius_108.html#SEC189
for more info.

Regards,
Sergey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]