how about using permission module
ram


On Fri, Sep 3, 2010 at 3:41 PM, vishu gaddi <[email protected]> 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
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to