Hello all,
I haven't been using OpenSER long so forgive me if this is a silly question. We are currently using OpenSER 1.0.1 (no TLS) running on CentOS 4.2 and 4.3Linux, if that helps.
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? Perhaps something involving checking the length of the Request URI in an INVITE message and then possibly sending a "404 Not Found" or similar message back? Is there a particular module I should be looking at too, or some generic functions that can do this?
Your thoughts and comments very welcome. Thanks in advance.
Max.
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
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@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
Hi,
The symbols are used with POSIX Regular Expressions. See:
http://www.openser.org/dokuwiki/doku.php?id=regular_expressions&DokuWiki...
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@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@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
Thanks for your reply.
On 9/14/06, Norman Brandinger norm@goes.com wrote:
Hi,
The symbols are used with POSIX Regular Expressions. See:
http://www.openser.org/dokuwiki/doku.php?id=regular_expressions&DokuWiki...
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@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@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