[OpenSIPS-Users] check_source_address not working in 1.9

spady spady77 at gmail.com
Fri Apr 12 14:41:05 CEST 2013


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.



More information about the Users mailing list