Thomas Jalsovsky <[EMAIL PROTECTED]> wrote:
>       my nas sends: 
> ...
>         h323-ivr-out=transactionID:13880
>         h323-ivr-out=type:test.tcl
> ...
>       I want to check by the h323-ivr-out line, so I would like to make 
> decision (about accept/reject) by the attribute h323-ivr-out which has 
> value 'type:<something>'.
>       When I test the attribute, the first line is tested and I don't 
> know how should I write a rule for this.

  Yes.  The current code checks for the FIRST appearance of an
attribute, and stops if it doesn't match.

  It *could* be changed to look for any other copy of an attribute, if
the first one didn't match.  That may be preferable, in fact.

  The code in src/main/valuepair.c, function paircmp() should be
changed so that IF there isn't a match, it loops back to check for
another copy of the same attribute.  This will slow the server down a
little, but not significantly.

  The patch would be fairly small, too.  If people think it's terribly
useful, I'll take a look at doing it in the next few days.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to