[Serusers] Accept invite only for registered users

sendman sendman at gmail.com
Wed Dec 1 14:13:52 CET 2004


Well, I have to check if *calling* are registered on my proxy, before
to allow him to make any calls!

In my tests, if a setup on ata186 sipregon=0 so I can make calls, I
have to block this...

On Wed, 01 Dec 2004 13:50:55 +0100, Andreas Granig <a.granig at inode.at> wrote:
> Hi,
> 
> > if (method=="INVITE") {
> >   if (!lookup(location)) {
> >
> >       sl_send_reply(404,"Not authorized");
> >       break;
> >
> >   }
> > }
> 
> This one checks if the *called* party is registered at SER, not the
> *calling* party.
> 
> However, I don't see a sense in restricting outgoing calls only to
> registered users. You can authenticate the caller using
> proxy_authorize() anyway. If the user doesn't register, he just cannot
> be called.
> 
> Andy
>




More information about the sr-users mailing list