<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi&nbsp; all,</FONT></DIV>
<DIV><FONT size=2>now i can configure SER to modified SDP when caller is in 
private ip,</FONT></DIV>
<DIV><FONT size=2>and use rtpproxy , so&nbsp;client can successed make voice 
call through NAT/Firewall</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>but my config now only work when caller is in private 
,</FONT></DIV>
<DIV><FONT size=2>if caller is in public ip , and callee is in private , it 
can't work</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>can it be configure to check if one of caller or calee is from 
private ip , </FONT></DIV>
<DIV><FONT size=2>then modify SDP , and force_rtp_proxy?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>can any give me some idea ?</FONT></DIV>
<DIV><FONT size=2>thanks </FONT></DIV>
<DIV><FONT size=2>jimmy</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT 
size=2>&nbsp;if(nat_uac_test("3"))<BR>&nbsp;{<BR>&nbsp;&nbsp;if((method == 
"REGISTER") || 
!(search("^Record-Route:")))<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;log("LOG:Someone 
trying to register from private IP, 
rewriting\n");<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;fix_nated_contact();<BR>&nbsp;&nbsp;&nbsp;if(method 
== 
"INVITE")<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;fix_nated_sdp("1");<BR>&nbsp;&nbsp;&nbsp;&nbsp;force_rtp_proxy();<BR>&nbsp;&nbsp;&nbsp;&nbsp;t_on_reply("1");<BR>&nbsp;&nbsp;&nbsp;};<BR>&nbsp;&nbsp;&nbsp;force_rport();<BR>&nbsp;&nbsp;&nbsp;setflag(6);<BR>&nbsp;&nbsp;};<BR>&nbsp;};</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>onreply_route[1]<BR>{<BR>&nbsp;if(status =~ 
"(183)|2[0-9][0-9]")<BR>&nbsp;{<BR>&nbsp;&nbsp;fix_nated_contact();<BR>&nbsp;&nbsp;force_rtp_proxy();<BR>&nbsp;};<BR>}</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV></BODY></HTML>