<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes"><FONT 
face=Arial>Vivienne,</FONT></SPAN></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes"><FONT face=Arial>From your 
config:</FONT>&nbsp;</SPAN></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>if 
(nat_uac_test("3")){<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>if (method == "REGISTER" || ! 
search("^Record-Route:")){<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>log("Log: Someone trying to register from private 
IP,rew<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT 
face="Times New Roman">riting\n");<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>fix_nated_contact(); #Rewrite contact with source 
IP<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>if 
(method == "INVITE"){<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>fix_nated_sdp("1"); #Add direction=active to 
SDP<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>};<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>force_rport(); # Add rport parameter to topmost 
Via<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>setflag(6); # Mark as Nated<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman"><SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>};</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT 
face="Times New Roman"></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman">Here you don't 
proxy the call, you just add the direction=active.&nbsp; If you want to rtp 
proxy the calls, you need to have a force_rtp_proxy() for the initial 
INVITE.&nbsp; Read section 1 of the Getting Started document at ONsip.org to 
understand what is supposed to happen and how to read the SDP payload and see 
the rtpproxy example found in the document.&nbsp; </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT face="Times New Roman">Your config will 
process the OK and proxy the rtp stream from the callee, but not the 
caller's.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-IE 
style="mso-ansi-language: EN-IE"><FONT 
face="Times New Roman">g-)</FONT></SPAN></P></DIV>
<DIV>&nbsp;</DIV>
<DIV>---- Original Message ----<BR>From: Vivienne Curran<BR>To: 
serusers@lists.iptel.org<BR>Sent: Thursday, March 31, 2005 05:55 PM<BR>Subject: 
[Serusers] Nathelper/Rtpproxy not working for two natted<BR>clients <BR><BR>&gt; 
Hi,<BR>&gt; <BR>&gt; I am having problems troubleshooting a problem I am 
experiencing with<BR>&gt; my SER configuration. I have ser 0.8.14 running with 
rtpproxy and<BR>&gt; nathelper enabled. I have two phones on the same subnet 
behind nat<BR>&gt; and I would like to make a call between the two. I want to 
invoke<BR>&gt; rtpproxy for this as they both have private address [I know 
this<BR>&gt; isn’t the most efficient way as they’re both on the same subnet but 
I<BR>&gt; can worry about that later].&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; 
<BR>&gt; When I ring from the phone 1 (2092) to phone 2 (2093), 2092 can 
hear<BR>&gt; voice but 2093 can’t. When 2093 ring 2092, there’s no audio. 
These<BR>&gt; phones are Grandstream BT100’s. They have been configured to 
listen<BR>&gt; on different SIP and RTP ports.&nbsp;&nbsp; <BR>&gt; <BR>&gt; 
2092: SIP Port: 5060<BR>&gt; 2092: RTP Port: 5004<BR>&gt; 2093: SIP Port: 
5061<BR>&gt; 2093: RTP Port: 5005<BR>&gt; <BR>&gt; I have included my ser.cfg 
file the messages received on my SER<BR>&gt; server (using ngrep SIP-q)in an 
attachment. I can confirm that my<BR>&gt; rtpproxy is working (originally I 
thought it wasn’t) by using “strace<BR>&gt; –d &lt;rtpproxy&nbsp; pid&gt; -f 
–F”. I can see a signal being returned.&nbsp;&nbsp; <BR>&gt; <BR>&gt; Any help 
would be appreciated or advise as to how I can proceed<BR>&gt; troubleshooting. 
<BR>&gt; Kindest Regards,<BR>&gt; Vivienne.<BR>&gt; Send instant messages to 
your online friends<BR>&gt; http://uk.messenger.yahoo.com <BR>&gt; <BR>&gt; 
<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; 
Serusers mailing list<BR>&gt; serusers@lists.iptel.org<BR>&gt; 
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>