> > 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.
>
Thank you for your fast response, Alan. I will be very happy if it works.
Another way should be (for me) to filter out the first line (with regular
expression it is very simple - ^transaction), but it should be more work
than changing the mentioned code part.
Thanks,
Thomas
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html