[Users] Checking for Digit Length

Max Gregorian gregorian442 at googlemail.com
Mon Sep 18 12:17:47 CEST 2006


Thanks for your reply.


On 9/14/06, Norman Brandinger <norm at goes.com> wrote:
>
> Hi,
>
> The symbols are used with POSIX Regular Expressions. See:
>
>
> http://www.openser.org/dokuwiki/doku.php?id=regular_expressions&DokuWiki=a21aa84e798d8e87169646498235364c
>
> http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html
>
> Regards,
> Norm
>
> Max Gregorian wrote:
> > Hello. Thanks for your response.
> >
> > I assume you mean something like this:
> >
> > if (! uri=~"sip:.*[@]+.*") {
> >   sl_send_reply("404", "Not Found");
> > }
> >
> > Can you direct me to the particular module that explains what these
> > characters like ~,^, @, []* all mean? I can't seem to find it.
> >
> >
> >
> > On 9/14/06, Juha Heinanen <jh at tutpro.com> wrote:
> >>
> >> Max Gregorian writes:
> >>
> >> > Basically I am trying to find out a way of checking for minimum and
> >> > maximum digit length dialled by our users, in order to filter some of
> >> the
> >> > traffic through our OpenSER server. Dialling rules aside, is there a
> >> > way?
> >>
> >> try regular expression matching if r-uri in your openser.cfg.
> >>
> >> -- juha
> >>
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
> >
> > ------------------------------------------------------------------------
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.405 / Virus Database: 268.12.3/447 - Release Date:
> 9/13/2006
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20060918/00ef4478/attachment.htm 


More information about the Users mailing list