rlm_perl hook for prepaid voip radius, RT#4100
authorivan <ivan>
Fri, 24 Oct 2008 21:25:29 +0000 (21:25 +0000)
committerivan <ivan>
Fri, 24 Oct 2008 21:25:29 +0000 (21:25 +0000)
fs_selfservice/FS-SelfService/SelfService/FreeRadiusVoip.pm

index c52a97f..67ad9a1 100644 (file)
@@ -41,7 +41,7 @@ sub authorize {
   my $response = call_time( 'src' => $RAD_REQUEST{'Calling-Station-Id'},
                             'dst' => $RAD_REQUEST{'Called-Station-Id'},  );
 
-  if ( $response->{$error} ) {
+  if ( $response->{'error'} ) {
     $RAD_REPLY{'Access-Reject'} = $response->{'error'};
     return RLM_MODULE_REJECT;
   } else {