[OpenSIPS-Users] top hiding and BYE problem

saneku ukhov at ycc.ru
Wed Jul 20 13:00:46 CEST 2011


Hello! thanks for you replay!
I did what you been telling me to do. But there is another issue:
OPENSIPS keep receving "ok 200" replyes from ASTERISK server (that has been
selected vai LB) and doesnt try send it to PSTN. I think there is one more
little issue that i cant even think off. for any case i put cfg file. thank
you very much.

route
{
              if (!method=="REGISTER") 
	{ 
			xlog("+++++++++Recording route...\n"); 
			record_route(); 
	} 
	
	if (loose_route()) 
	{ 
       	                       append_hf("P-hint: rr-enforced\r\n"); 
	}

              #skip Invite messages generated by the server
	if(is_method("INVITE") && !(src_ip=="10.130.0.140"))
	{
		load_balance("1","pstn");
		xlog("\n\nPROXY 3: Selected dst: $du\n");
		
		#have $du	    -> sip:10.130.0.137
		#$du need to be -> sip:##0950 at 10.130.0.137
						
		if($du=="sip:10.130.0.137")
		{
			xlog("\n this is 137\n");
			$du="sip:##0950 at 10.130.0.137:5060";			
		}
		
		if($du=="sip:10.130.0.136")
		{
			xlog("\n this is 136\n");
			$du="sip:##0950 at 10.130.0.136:5060";			
		}	
		b2b_init_request("top hiding");	
		exit;
	};
}




--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/top-hiding-and-BYE-problem-tp6594249p6602208.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list