<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3603" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT size=2>Hi,Daniel<BR></FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;I have according to your instruction modify 
the config file,but it remain as before. following is my modify 
part:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2># -- nathelper<BR>modparam("nathelper", "rtpproxy_sock", 
"udp:127.0.0.1:7722")&nbsp; <FONT color=#ff0000>#Is 127.0.0.1 should&nbsp;modify 
my internet ip?&nbsp;<BR></FONT>modparam("nathelper", "natping_interval", 
30)<BR>modparam("nathelper", "ping_nated_only", 1)<BR>modparam("nathelper", 
"sipping_bflag", 7)<BR>modparam("nathelper", "sipping_from", 
"sip:pinger@kamailio.org")<FONT color=#ff0000> </FONT><A 
href="mailto:#pinger@kamailio.org"><FONT 
color=#ff0000>#pinger@kamailio.org</FONT></A><FONT color=#ff0000> no 
modify?</FONT>&nbsp;<BR>modparam("registrar|nathelper", "received_avp", 
"$avp(i:80)")<BR>modparam("usrloc", "nat_bflag", 6)</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp; Can you tell my how to find the kamailio's log 
file(it's path)?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp; Thank you!</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;--aiphie</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>----- Original Message ----- </FONT>
<DIV><FONT size=2>From: "Daniel-Constantin Mierla" &lt;</FONT><A 
href="mailto:miconda@gmail.com"><FONT size=2>miconda@gmail.com</FONT></A><FONT 
size=2>&gt;</FONT></DIV>
<DIV><FONT size=2>To: "aiphie" &lt;</FONT><A 
href="mailto:chengwu8@139.com"><FONT size=2>chengwu8@139.com</FONT></A><FONT 
size=2>&gt;</FONT></DIV>
<DIV><FONT size=2>Cc: &lt;</FONT><A href="mailto:users@lists.kamailio.org"><FONT 
size=2>users@lists.kamailio.org</FONT></A><FONT size=2>&gt;</FONT></DIV>
<DIV><FONT size=2>Sent: Monday, August 24, 2009 3:45 PM</FONT></DIV>
<DIV><FONT size=2>Subject: Re: [Kamailio-Users] sip phone behind the 
nat</FONT></DIV></DIV>
<DIV><FONT size=2><BR></FONT></DIV><FONT size=2>&gt; <BR>&gt; <BR>&gt; On 
24.08.2009 9:49 Uhr, aiphie wrote:<BR>&gt;&gt; 
hi,all<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt;&gt;&nbsp;&nbsp;&nbsp; I have 
use sed command to clear the comment which in front of regarding nat,But it's 
always use local network IP to fill session description protocol-&gt;connection 
information-&gt;connection address,I know sip server can rewrite this message 
item,Can you tell me how to let sip server rewrite 
it?<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; annex is my config file,please look what wrong 
in this?&nbsp;&nbsp; <BR>&gt;&gt;&nbsp;&nbsp; <BR>&gt; have you read my previous 
email entirely? There was something about<BR>&gt; rtpproxy that may lead you to 
discover what is wrong.<BR>&gt; <BR>&gt; Cheers,<BR>&gt; Daniel<BR>&gt; 
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; thank 
you!<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; 
--aiphie<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; ----- Original Message 
----- <BR>&gt;&gt; From: "Daniel-Constantin Mierla" &lt;</FONT><A 
href="mailto:miconda@gmail.com"><FONT size=2>miconda@gmail.com</FONT></A><FONT 
size=2>&gt;<BR>&gt;&gt; To: "aiphie" &lt;</FONT><A 
href="mailto:chengwu8@139.com"><FONT size=2>chengwu8@139.com</FONT></A><FONT 
size=2>&gt;<BR>&gt;&gt; Cc: &lt;</FONT><A 
href="mailto:users@lists.kamailio.org"><FONT 
size=2>users@lists.kamailio.org</FONT></A><FONT size=2>&gt;<BR>&gt;&gt; Sent: 
Friday, August 21, 2009 6:55 PM<BR>&gt;&gt; Subject: Re: [Kamailio-Users] sip 
phone behind the nat<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp; 
<BR>&gt;&gt;&gt; Hello,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; On 21.08.2009 12:52 Uhr, 
aiphie wrote:<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt;&gt;&gt;&gt; 
Hi,body.<BR>&gt;&gt;&gt;&gt; I'm using the kamailio as a sip server,If in the 
local network ,It<BR>&gt;&gt;&gt;&gt; works very well ,But when i set the sip 
server in the internet, When<BR>&gt;&gt;&gt;&gt; starting voice chat,Two sip 
phone will receive the behind net ip<BR>&gt;&gt;&gt;&gt; address(sip phone's 
local ip address).<BR>&gt;&gt;&gt;&gt; How i can configure sip server(kamailio) 
let sip server send sip<BR>&gt;&gt;&gt;&gt; phone's peer ip address using front 
nat ip address(internet ip address)?<BR>&gt;&gt;&gt;&gt; Any body can give me 
how to realize it?<BR>&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&gt;&gt;&gt; you need to enable nathelper module + appropriate lines in 
config file<BR>&gt;&gt;&gt; and install 
rtpptoxy.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; If you check the default config file 
you will see at the top some<BR>&gt;&gt;&gt; comments regarding nat traversal 
and what sed command you can use to<BR>&gt;&gt;&gt; enable 
it.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Cheers,<BR>&gt;&gt;&gt; 
Daniel<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; -- <BR>&gt;&gt;&gt; Daniel-Constantin 
Mierla<BR>&gt;&gt;&gt; * </FONT><A href="http://www.asipto.com/"><FONT 
size=2>http://www.asipto.com/</FONT></A><BR><FONT 
size=2>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt;&gt; &gt;<BR>&gt;&gt; 
------------------------------------------------------------------------<BR>&gt;&gt;<BR>&gt;&gt; 
_______________________________________________<BR>&gt;&gt; Kamailio (OpenSER) - 
Users mailing list<BR>&gt;&gt; </FONT><A 
href="mailto:Users@lists.kamailio.org"><FONT 
size=2>Users@lists.kamailio.org</FONT></A><BR><FONT size=2>&gt;&gt; </FONT><A 
href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users"><FONT 
size=2>http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</FONT></A><BR><FONT 
size=2>&gt;&gt; </FONT><A 
href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users"><FONT 
size=2>http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</FONT></A><BR><FONT 
size=2>&gt; <BR>&gt; -- <BR>&gt; Daniel-Constantin Mierla<BR>&gt; * </FONT><A 
href="http://www.asipto.com/"><FONT 
size=2>http://www.asipto.com/</FONT></A><BR><FONT 
size=2>&gt;</FONT></BODY></HTML>