Use a regex on the uri ....
if ( uri =~ "^sip:100@" ) // matches dialed number "100"
if ( uri =~ "^sip:1800[0-9]+@" ) // matches all numbers that start
with 1800 (e.g. 18005551212)
I think you can do something like:
if ( method == "INVITE" ) {
if ( uri =~ "^sip:100@" or uri =~ "^sip:1800[0-9]+@" ) {
sl_send_reply( "404", "Not Found" );
break;
};
};
On Fri, 16 Jul 2004 18:24:53 -0700 (PDT), karunb(a)omnitechnology.net
<karunb(a)omnitechnology.net> wrote:
Hi All,
I there a way to block certain numbers like 100,1800 etc in the
INVITE Message can any one help me on this.
Regards,
karun
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Jamie Yukes
Software Engineer
Global Connect Voice Broadcasting
http://www.gc1.com/