+ if ( $response->{'error'} ) {
+ $RAD_REPLY{'Reply-Message'} = $response->{'error'};
+ return RLM_MODULE_REJECT;
+ } elsif ( $response->{'seconds'} ) {
+ $RAD_REPLY{'Session-Timeout'} = $response->{'seconds'};
+ $RAD_REPLY{'Termination-Action'} = 0;
+ return RLM_MODULE_OK;
+ } else {
+ # if the called number is free, put 1 in the Termination-Action attribute
+ $RAD_REPLY{'Termination-Action'} = 1;
+ return RLM_MODULE_OK;
+ }