[Kamailio-Users] IP Authentication

Henning Westerholt henning.westerholt at 1und1.de
Thu Mar 11 18:52:17 CET 2010


On Thursday 11 March 2010, Iñaki Baz Castillo wrote:
> > you refer to allowing certain peers to bypass your authentification logic
> > in the script and setting up calls? Sure, this is possible. Just add some
> > logic that checks for a certain IP address and then route the call as you
> > like.
> >
> > something like:
> >
> > if (src_ip!=1.2.3.4/24) {
> >  # do routing..
> > } else {
> >  # do normal authentification
> > }
> >
> > you could also use PVs to do this, i think the right one is $si.
> 
> I recommend using the permissions module ("address" table). Very
> powerful and efficient for such scenarios.

Hi Iñaki,

this is of course better. Don't used it that much, for no particular reason, 
so i usually don't thought about it.

Cheers,

Henning




More information about the sr-users mailing list