[Users] Checking for Digit Length

Norman Brandinger norm at goes.com
Fri Sep 15 00:09:49 CEST 2006


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
>   





More information about the Users mailing list