[Serusers] REGISTRATION

Suvendu Sethi suvenduji at yahoo.co.in
Mon Nov 1 10:17:15 CET 2004


Hi All,

 

If I want to allow only one series of numbers to
register and discard all other request, is it possible
to implement using ser?

 

For example:  I want to allow only 3xxx series phones
to get registered and discard all others.

 

I tried this


 

If  (method==REGISTER && uri=~”^sip:3[0-9]*@”) {

Save(“location”);

Break;

}

Else {

            Sl_send_reply(“401”,”Unauthorized”);

            Break;

};

 

 

This doesn’t seem to be working. 483 error is
returned.

 

Appreciate your help in this regard.

Regards,
Suvendu.

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony




More information about the sr-users mailing list