[OpenSIPS-Users] Authentication problem
ram
talk2ram at gmail.com
Fri Sep 3 20:13:45 CEST 2010
how about using permission module
ram
On Fri, Sep 3, 2010 at 3:41 PM, vishu gaddi <vishugaddi at gmail.com> wrote:
> Hi,
>
>
>
> I am using opensips-1.6.0. I am facing problem of authentication.
>
> Opensips server is accepting calls from any IP even IP is registered in
> address table or not, and routing them to dialplan table and so on to
> destination gateway.
>
>
>
> I want IP based authentication for incoming traffic and I am using
> check_source_address(“0”) function for this purpose of authentication, but
> is not working.
>
>
>
> Here is script from opensips.cfg
>
>
>
> *if (!(method=="REGISTER") && is_from_local()) *
>
> * {*
>
> * if(!check_source_address("0")){*
>
> * if (!proxy_authorize("", "subscriber")) {*
>
> * proxy_challenge("", "0");*
>
> * exit;*
>
> * }*
>
> * if (!db_check_from()) {*
>
> * sl_send_reply("403","Forbidden auth ID");*
>
> * exit;*
>
> * }*
>
> * *
>
> * consume_credentials();*
>
> * # caller authenticated*
>
> * }*
>
> * }*
>
>
>
>
>
> Please revert how to use this function to authenticate caller based on IP
> ??
>
>
>
> Thanks,
>
> Vishu
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100903/02ea8b4b/attachment.htm
More information about the Users
mailing list