<!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 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 client can successed make voice
call through NAT/Firewall</FONT></DIV>
<DIV><FONT size=2></FONT> </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> </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> </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> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT
size=2> if(nat_uac_test("3"))<BR> {<BR> if((method ==
"REGISTER") ||
!(search("^Record-Route:")))<BR> {<BR> log("LOG:Someone
trying to register from private IP,
rewriting\n");<BR> <BR> fix_nated_contact();<BR> if(method
==
"INVITE")<BR> {<BR> fix_nated_sdp("1");<BR> force_rtp_proxy();<BR> t_on_reply("1");<BR> };<BR> force_rport();<BR> setflag(6);<BR> };<BR> };</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>onreply_route[1]<BR>{<BR> if(status =~
"(183)|2[0-9][0-9]")<BR> {<BR> fix_nated_contact();<BR> force_rtp_proxy();<BR> };<BR>}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV></BODY></HTML>