(RADIATOR) writing my postauthhook
Rosario Pingaro
rpingar at nesec.it
Fri Jun 24 08:21:07 CDT 2005
I am writing my postauthhook to handle a prepaid service.
But I get an error when try to set the Session-Timeout value.
This is the error:
Fri Jun 24 15:06:08 2005: ERR: There is no value named 4502.5 for attribute Session-Timeout. Using 0.
This is my pl file:
sub
{
my $p = ${$_[0]};
my $rp = ${$_[1]};
my $result = ${$_[2]};
my $credit;
my $sessiont;
my $user;
my $route;
$credit = $rp -> get_attr('cisco-h323-credit-amount');
$user = $p-> get_attr('Calling-Station-Id');
$route= $p-> get_attr('Called-Station-Id');
if ($p->code eq 'Access-Request') {
&main::log($main::LOG_DEBUG, "CREDITO = $credit");
&main::log($main::LOG_DEBUG, "UTENTE = $user");
&main::log($main::LOG_DEBUG, "CHIAMATO = $route");
$rp -> delete_attr('cisco-h323-credit-amount');
#trasformazione di prova
$sessiont=$credit*5;
$rp-> change_attr('Session-Timeout', $sessiont);
}
return;
}
what is the problem?
thanks
Rosario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.open.com.au/pipermail/radiator/attachments/20050624/9e89f392/attachment.html>
More information about the radiator
mailing list