From: jdegraeve Date: Fri, 10 Feb 2006 16:05:59 +0000 (+0000) Subject: Disable volume pieces to look where the error comes from X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dba14d73cd6d6e91bc8f614c2eb4ba588b24647;p=m0n0chwall.git Disable volume pieces to look where the error comes from git-svn-id: https://svn.m0n0.ch/wall/trunk@85 e36fee2c-cc09-0410-a7cc-ebac5c6737de --- diff --git a/captiveportal/radius_accounting.inc b/captiveportal/radius_accounting.inc index 4d23836..e7e3077 100644 --- a/captiveportal/radius_accounting.inc +++ b/captiveportal/radius_accounting.inc @@ -112,7 +112,7 @@ function RADIUS_ACCOUNTING_START($ruleno,$username,$sessionid,$radiusip,$radiusp $racct->putAttribute(RADIUS_ACCT_SESSION_ID, $sessionid); // Extra data to identify the client and nas - $racct->putAttribute(RADIUS_FRAMED_IP_ADDRESS, $clientip, addr); + $racct->putAttribute(RADIUS_FRAMED_IP_ADDRESS, $clientip, "addr"); $racct->putAttribute(RADIUS_CALLING_STATION_ID, $callingstationid); $racct->putAttribute(RADIUS_CALLED_STATION_ID, $calledstationid); @@ -231,18 +231,20 @@ function RADIUS_ACCOUNTING_STOP($ruleno,$username,$sessionid,$start_time,$radius $racct->session_time = $session_time; // Extra data to identify the client and nas - $racct->putAttribute(RADIUS_FRAMED_IP_ADDRESS, $clientip, addr); + $racct->putAttribute(RADIUS_FRAMED_IP_ADDRESS, $clientip, "addr"); $racct->putAttribute(RADIUS_CALLING_STATION_ID, $callingstationid); $racct->putAttribute(RADIUS_CALLED_STATION_ID, $calledstationid); + /* Make this temporarly disabled to see if we still get errors // Volume stuff: Ingress (Note: remove the explicit integer if the type conversion works like we expect) - $racct->putAttribute(RADIUS_ACCT_INPUT_PACKETS, $input_pkts, integer); - $racct->putAttribute(RADIUS_ACCT_INPUT_OCTETS, $input_bytes_radius, integer); - $racct->putAttribute(RADIUS_ACCT_INPUT_GIGAWORDS, $input_gigawords, integer); + $racct->putAttribute(RADIUS_ACCT_INPUT_PACKETS, $input_pkts, "integer"); + $racct->putAttribute(RADIUS_ACCT_INPUT_OCTETS, $input_bytes_radius, "integer"); + $racct->putAttribute(RADIUS_ACCT_INPUT_GIGAWORDS, $input_gigawords, "integer"); // Volume stuff: Outgress - $racct->putAttribute(RADIUS_ACCT_OUTPUT_PACKETS, $output_pkts, integer); - $racct->putAttribute(RADIUS_ACCT_OUTPUT_OCTETS, $output_bytes_radius, integer); - $racct->putAttribute(RADIUS_ACCT_OUTPUT_GIGAWORDS, $output_gigawords, integer); + $racct->putAttribute(RADIUS_ACCT_OUTPUT_PACKETS, $output_pkts, "integer"); + $racct->putAttribute(RADIUS_ACCT_OUTPUT_OCTETS, $output_bytes_radius, "integer"); + $racct->putAttribute(RADIUS_ACCT_OUTPUT_GIGAWORDS, $output_gigawords, "integer"); + */ if (!$interimupdate) $racct->putAttribute(RADIUS_ACCT_TERMINATE_CAUSE, $term_cause);