[Serusers] question...
Jamie Yukes
jyukes at gmail.com
Sat Jul 17 06:59:12 CEST 2004
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 at omnitechnology.net
<karunb at 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 at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
Jamie Yukes
Software Engineer
Global Connect Voice Broadcasting http://www.gc1.com/
More information about the sr-users
mailing list