use Reply-Message for the RADIUS error message, RT#4100
authorivan <ivan>
Fri, 24 Oct 2008 22:53:59 +0000 (22:53 +0000)
committerivan <ivan>
Fri, 24 Oct 2008 22:53:59 +0000 (22:53 +0000)
fs_selfservice/FS-SelfService/SelfService/FreeRadiusVoip.pm

index 5f244d4..0df24f7 100644 (file)
@@ -36,13 +36,13 @@ use constant RLM_MODULE_NUMCODES=> 9; #How many return codes there are
 
 sub authorize {
 
-  #my $src = $RAD_REQUEST{'User-Name'};
+  #&log_request_attributes();
 
   my $response = call_time( 'src' => $RAD_REQUEST{'Calling-Station-Id'},
                             'dst' => $RAD_REQUEST{'Called-Station-Id'},  );
 
   if ( $response->{'error'} ) {
-    $RAD_REPLY{'Access-Reject'} = $response->{'error'};
+    $RAD_REPLY{'Reply-Message'} = $response->{'error'};
     return RLM_MODULE_REJECT;
   } else {
     $RAD_REPLY{'Session-Timeout'} = $response->{'seconds'};