Hello Rustam,

On Apr 3,  4:07pm, Rustam Povarov wrote:
> Subject: (RADIATOR) Reply Items in Access-Reject message?
>
> Hello!
>
> How can I add some reply items in Access-Reject message?
> I need to return h323-return-code=<cause> to my IVR script, if user not
> exist in database.

Radaitor is not able to do that "out of the box". The only ways I could see of
doing that would be:

1. Change the code. In Client.pm at about line 296:

            $rp->set_code('Access-Reject');
            $rp->addAttrByNum($Radius::Radius::REPLY_MESSAGE,
                              'Request Denied');
            $rp->addAttrByNum($Radius::Radius::REPLY_MESSAGE, $reason)
                if $self->{RejectHasReason};
# add this  $rp->add_attr('H323-Return-Code', '"h323-return-code=0"');
            $p->{Client}->replyTo($rp, $p);
            return;

2. Add a PostAuthHook that appends the H323-Return-Code, something like this
(untested)
PostAuthHooh sub {${$_[1]}->add_attr('H323-Return-Code',
'"h323-return-code=0"');}


Hope that helps.
Cheers.

>
> Thank you.
>
> Best regards,
> Rustam Povarov
>
>
> ===
> Archive at http://www.starport.net/~radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
>-- End of excerpt from Rustam Povarov



-- 
Mike McCauley                               [EMAIL PROTECTED]
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
Phone +61 3 9598-0985                       Fax   +61 3 9598-0955

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8, 
2000, NT, MacOS X
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to