update replay

Miha Zoubek miha at softnet.si
Mon Feb 13 11:06:44 CET 2012


On 2/13/2012 10:52 AM, Fajar A. Nugraha wrote:
> if ("%{NAS-IP-Address}" != "xxx.xxx.xxx.xxx"){
@Fajar sorry that I did not inform you about this. I have noticed right 
when I send email to the group. I have fix quotes but still getting error.

fix:

if (%{NAS-IP-Address} != "xxx.xxx.xxx.xxx"){

update reply {
        NAS-IP-Address = "%{NAS-IP-Address}"
        Acct-Multi-Session-Id = "%{Acct-Multi-Session-Id}"
        Acct-Session-Id = "%{Acct-Session-Id}"
        Event-Timestamp = "%{Event-Timestamp}"
        3GPP2-Session-Termination-Capability = 
"%{3GPP2-Session-Termination-Capability}"
        3GPP2-Prepaid-Acct-Quota = "%{3GPP2-Prepaid-Acct-Quota}"
        3GPP2-Prepaid-acct-Capability = "%{3GPP2-Prepaid-acct-Capability}"


#       3GPP2-Session-Termination-Capability = 
"{3GPP2-Session-Termination-Capability}"
#       Acct-Multi-Session-Id = %{request:Acct-Multi-Session-Id}
#       3GPP2-Release-Indicator =%{request:3GPP2-Release-Indicator}
}
}


Error:

  Module: Checking session {...} for more modules to load
  Module: Checking post-proxy {...} for more modules to load
  Module: Checking post-auth {...} for more modules to load
Bare %{...} is invalid in condition at: %{NAS-IP-Address} != 
"xxx.xxx.xxx.xxx")
/usr/local/etc/raddb/sites-enabled/default[450]: Errors parsing 
post-auth section.
[root at newbill sites-available]#

BR,
Miha


-- 
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120213/fcaf2b5d/attachment.html>


More information about the Freeradius-Users mailing list