[OpenSIPS-Users] check_source_address not working in 1.9

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Apr 12 18:22:21 CEST 2013


Hello,

I'm a bit confused, as what you are claiming is a bit of a nonces - you 
say that is with NOT or without, for the same src IP, you end up in the 
if() block all the time ?!?!

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 04/12/2013 03:41 PM, spady wrote:
> Hi Bogdan, here snippet of used code:
>
> *if(!check_source_address("0")){
> 			xlog("########LOG: Controllo dell'IP sorgente!!!!!\n" );
> 			if (!proxy_authorize("", "subscriber")) {
> 				proxy_challenge("", "0");
> 				exit;
> 			}
> 		}	
> 			if (!db_check_from()) {
> 				sl_send_reply("403","Forbidden auth ID");
> 				exit;
> 			}
> 		
> 			consume_credentials();
> *
>
> Using this i get *403 Forbidden auth ID*
>
>
> Using this:
>
> *if(check_source_address("0"))*{
> 			xlog("########LOG: Controllo dell'IP sorgente!!!!!\n" );
> 			if (!proxy_authorize("", "subscriber")) {
> 				proxy_challenge("", "0");
> 				exit;
> 			}
> 		}	
> 			if (!db_check_from()) {
> 				sl_send_reply("403","Forbidden auth ID");
> 				exit;
> 			}
> 		
> 			consume_credentials();
>
> i get:
>
> 407 Unauthorized!!
>
>
>
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/check-source-address-not-working-in-1-9-tp7585808p7585810.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list