Hi,
For implementing call blocking using AVPs, I'd like to store an arbitrary number of regular expressions per user in usr_preferences (say as i:100) and use avp_check("$ruri", "re/$avp(i:100)/g") to check these regex-entries against the RURI. The problem is that the regular expression in avp_check seems to have to be a string ("ERROR:avpops:fixup_check_avp: regexp operation requires string value").
I'd say it would be a nice feature to also allow AVPs for regex checks. What do you think?
Andy
Indeed! :-) http://sourceforge.net/tracker/index.php?func=detail&aid=1443010&gro...
regards Klaus
Andreas Granig wrote:
Hi,
For implementing call blocking using AVPs, I'd like to store an arbitrary number of regular expressions per user in usr_preferences (say as i:100) and use avp_check("$ruri", "re/$avp(i:100)/g") to check these regex-entries against the RURI. The problem is that the regular expression in avp_check seems to have to be a string ("ERROR:avpops:fixup_check_avp: regexp operation requires string value").
I'd say it would be a nice feature to also allow AVPs for regex checks. What do you think?
Andy
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Until the new feature will be in place, isn't enough for you to use fast match operator (fm) for this purpose?
Cheers, Daniel
On 04/19/06 19:28, Klaus Darilion wrote:
Indeed! :-) http://sourceforge.net/tracker/index.php?func=detail&aid=1443010&gro...
regards Klaus
Andreas Granig wrote:
Hi,
For implementing call blocking using AVPs, I'd like to store an arbitrary number of regular expressions per user in usr_preferences (say as i:100) and use avp_check("$ruri", "re/$avp(i:100)/g") to check these regex-entries against the RURI. The problem is that the regular expression in avp_check seems to have to be a string ("ERROR:avpops:fixup_check_avp: regexp operation requires string value").
I'd say it would be a nice feature to also allow AVPs for regex checks. What do you think?
Andy
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
andreas,
are you not worried about performance if you need to do several uncompiled regular expression matches per call?
-- juha
Ah, ok, it's the fnmatch function which is called for the fm operator, so this is definitely enough for call blocking. Thanks for the hint...
Juha Heinanen wrote:
are you not worried about performance if you need to do several uncompiled regular expression matches per call?
Well, it can only get better, because we already use regular expressions for that, but in an own module. So I just want to get rid of the module itself. But, as stated above, "fm" should do the job...
Andy