> I have a situation where I really want to drop attributes out with a
> reject. Can I do it?

  PostAuthHook sub { \
    if (${$_[2]} == $main::ACCEPT && ${$_[0]}->code eq 'Access-Request') { \
      if (${$_[1]}->get_attr('cisco-h323-return-code') ne 'h323-return-code=0') { \
        ${$_[2]} = $main::REJECT; \
      } \
    } \
  }

Now don't Access-Reject, but Access-Accept and one of the attributes should be
cisco-h323-return-code set to h323-return-code=0 or the return code you want.


Blaz Zupan,  Medinet d.o.o, Linhartova 21, 2000 Maribor, Slovenia
E-mail: [EMAIL PROTECTED], Tel: +386-2-320-6320, Fax: +386-2-320-6325


===
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