<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>to be sure I'm silly </FONT><FONT size=2>I downgraded from 
trunk 17001</FONT></DIV>
<DIV><FONT size=2>and rtp timeout disappeared.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Regards</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=infos@madovsky.org href="mailto:infos@madovsky.org">Madovsky</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=freeswitch-users@lists.freeswitch.org 
  href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, March 22, 2010 3:20 
PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] rtp 
  timeout yet</DIV>
  <DIV><BR></DIV>
  <DIV><FONT size=2>so when I use a public IP to register a phone,</FONT></DIV>
  <DIV><FONT size=2>there s a rtp timeout from line 853 of 
  switch_rtp.c</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>I looked at the code line 853 below&nbsp;:</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT 
  size=2>-------------------------------------------------------</FONT></DIV>
  <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; old_sock = 
  rtp_session-&gt;sock_input;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rtp_session-&gt;sock_input = 
  new_sock;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new_sock = 
  NULL;</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER) || 
  switch_test_flag(rtp_session, SWITCH_RTP_FLAG_NOBLOCK)) 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  switch_socket_opt_set(rtp_session-&gt;sock_input, SWITCH_SO_NONBLOCK, 
  TRUE);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  switch_set_flag_locked(rtp_session, 
  SWITCH_RTP_FLAG_NOBLOCK);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  switch_socket_create_pollset(&amp;rtp_session-&gt;read_pollfd, 
  rtp_session-&gt;sock_input, SWITCH_POLLIN | SWITCH_POLLERR, 
  rtp_session-&gt;pool);</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status = 
  SWITCH_STATUS_SUCCESS;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *err = 
  "Success";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  switch_set_flag_locked(rtp_session, SWITCH_RTP_FLAG_IO);</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>&nbsp; done:</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (new_sock) 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  switch_socket_close(new_sock);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT color=#ff0000 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (old_sock) 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  switch_socket_close(old_sock);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (rtp_session-&gt;ready != 1) 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  WRITE_DEC(rtp_session);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  READ_DEC(rtp_session);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 
  status;<BR></FONT></DIV>
  <DIV><FONT size=2>-----------------------------------</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>it seems that old_sock is the actual sock that it needs to 
  use since there is no auto changing to do ?</FONT></DIV>
  <DIV><FONT size=2>So does it mean maybe the old_sock is yet existing because 
  there is no NAT ?</FONT></DIV><FONT size=2>
  <DIV><BR>Thanks</DIV>
  <DIV>&nbsp;</DIV></FONT>
  <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: "Madovsky" &lt;</FONT><A 
  href="mailto:infos@madovsky.org"><FONT 
  size=2>infos@madovsky.org</FONT></A><FONT size=2>&gt;</FONT></DIV>
  <DIV><FONT size=2>To: &lt;</FONT><A 
  href="mailto:freeswitch-users@lists.freeswitch.org"><FONT 
  size=2>freeswitch-users@lists.freeswitch.org</FONT></A><FONT 
  size=2>&gt;</FONT></DIV>
  <DIV><FONT size=2>Sent: Monday, March 22, 2010 2:31 AM</FONT></DIV>
  <DIV><FONT size=2>Subject: Re: [Freeswitch-users] rtp timeout 
  yet</FONT></DIV></DIV>
  <DIV><FONT size=2><BR></FONT></DIV><FONT size=2>&gt;I deactivated iptables, no 
  router, no nat,<BR>&gt; only 2 public IP, 2 softphones connected on the same 
  FS which is on a public<BR>&gt; IP to.<BR>&gt; default config, result -&gt; 
  rtp timeout<BR>&gt; crazy that's not working since I can make 2 softphones 
  behind a firewall<BR>&gt; work....<BR>&gt; <BR>&gt; ok that's enough for me 
  tonight ! ;)<BR>&gt; <BR>&gt; ----- Original Message ----- <BR>&gt; From: 
  "Madovsky" &lt;</FONT><A href="mailto:infos@madovsky.org"><FONT 
  size=2>infos@madovsky.org</FONT></A><FONT size=2>&gt;<BR>&gt; To: 
  &lt;</FONT><A href="mailto:freeswitch-users@lists.freeswitch.org"><FONT 
  size=2>freeswitch-users@lists.freeswitch.org</FONT></A><FONT 
  size=2>&gt;<BR>&gt; Sent: Monday, March 22, 2010 1:55 AM<BR>&gt; Subject: Re: 
  [Freeswitch-users] rtp timeout yet<BR>&gt; <BR>&gt; <BR>&gt;&gt;I replace 
  public ip by these fake one...<BR>&gt;&gt;<BR>&gt;&gt; ----- Original Message 
  ----- <BR>&gt;&gt; From: "Jason White" &lt;</FONT><A 
  href="mailto:jason@jasonjgw.net"><FONT 
  size=2>jason@jasonjgw.net</FONT></A><FONT size=2>&gt;<BR>&gt;&gt; To: 
  &lt;</FONT><A href="mailto:freeswitch-users@lists.freeswitch.org"><FONT 
  size=2>freeswitch-users@lists.freeswitch.org</FONT></A><FONT 
  size=2>&gt;<BR>&gt;&gt; Sent: Monday, March 22, 2010 1:49 AM<BR>&gt;&gt; 
  Subject: Re: [Freeswitch-users] rtp timeout 
  yet<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;&gt; Madovsky &lt;</FONT><A 
  href="mailto:infos@madovsky.org"><FONT 
  size=2>infos@madovsky.org</FONT></A><FONT size=2>&gt; 
  wrote:<BR>&gt;&gt;&gt;&gt; result with tcpdump -ennqti br0 -T rtp -vvv dst 
  port 5060<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; 10.10.10.132 = softphone1 
  registered from public IP<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; 11.11.11.= 
  softphone2 registered from public IP<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; 
  10.10.10.138 = FS<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Those are private addresses; 
  there's a NAT device involved somewhere, and<BR>&gt;&gt;&gt; that's likely to 
  be where your problems are.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; 
  _______________________________________________<BR>&gt;&gt;&gt; 
  FreeSWITCH-users mailing list<BR>&gt;&gt;&gt; </FONT><A 
  href="mailto:FreeSWITCH-users@lists.freeswitch.org"><FONT 
  size=2>FreeSWITCH-users@lists.freeswitch.org</FONT></A><BR><FONT 
  size=2>&gt;&gt;&gt; </FONT><A 
  href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><FONT 
  size=2>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</FONT></A><BR><FONT 
  size=2>&gt;&gt;&gt; 
  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>&gt;&gt;&gt; 
  </FONT><A href="http://www.freeswitch.org"><FONT 
  size=2>http://www.freeswitch.org</FONT></A><FONT size=2> <BR>&gt; <BR>&gt; 
  <BR>&gt; _______________________________________________<BR>&gt; 
  FreeSWITCH-users mailing list<BR>&gt; </FONT><A 
  href="mailto:FreeSWITCH-users@lists.freeswitch.org"><FONT 
  size=2>FreeSWITCH-users@lists.freeswitch.org</FONT></A><BR><FONT size=2>&gt; 
  </FONT><A 
  href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><FONT 
  size=2>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</FONT></A><BR><FONT 
  size=2>&gt; 
  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>&gt; 
  </FONT><A href="http://www.freeswitch.org"><FONT 
  size=2>http://www.freeswitch.org</FONT></A> </BLOCKQUOTE></BODY></HTML>