[Devel] Re: dynamic regexps
JF
jfkavaka at gmail.com
Fri Mar 3 18:10:49 CET 2006
Good stuff! I wasn't aware of that, thank you.
But in order to support full dynamic regexps, there could be another
operator in avp_check, which would result in regexp compilation and
matching at "script processing-time" (instead of compilation at fixup
and matching when processing), even if this brings some performance
loss (this would be documented). Would it make sense to extend avpops
to do this?
JF
On 3/2/06, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
> Hi,
>
> have checked the FM operator for avp_check()
> http://www.voice-system.ro/docs/avpops/ar01s06.html#avp_check
>
> it's compromised solution for dynamic regexps
>
> regards,
> bogdan
>
> JF wrote:
>
> >Comments or suggestions on how this could be achieved/implemented?
> >
> >Thanks,
> >
> >JF
> >
> >On 2/28/06, JF <jfkavaka at gmail.com> wrote:
> >
> >
> >>Hi all,
> >>
> >>Just wondering if someone else will find useful the following
> >>(requested) feature: supporting "dynamic" values for regexps. This
> >>mean for instance supporting:
> >>
> >>avp_check("$ru", "re/$avp(s:regexp1)");
> >>search_body("$avp(s:regexp2)");
> >>
> >>Of course, this has the overhead of having to compile the regexps
> >>just-in-time, at message processing time. But it can be very useful to
> >>dynamically configure the behaviour of the server.
> >>
> >>I guess this will involve minor changes in fixup functions and
> >>addition of regcomp() in case a "pseudo-variable" is present.
> >>
> >>What do people think about this?
> >>
> >>JF
> >>
> >>
> >>
> >
> >_______________________________________________
> >Devel mailing list
> >Devel at openser.org
> >http://openser.org/cgi-bin/mailman/listinfo/devel
> >
> >
> >
>
>
More information about the Devel
mailing list