[OpenSIPS-Users] Authentication problem
vishu gaddi
vishugaddi at gmail.com
Fri Sep 3 12:11:13 CEST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100903/6493ac42/attachment.htm
More information about the Users
mailing list