<!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> </DIV>
<DIV><FONT size=2>Regards</FONT></DIV>
<DIV><FONT size=2></FONT> </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> </DIV>
<DIV><FONT size=2>I looked at the code line 853 below :</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT
size=2>-------------------------------------------------------</FONT></DIV>
<DIV><FONT size=2> old_sock =
rtp_session->sock_input;<BR>
rtp_session->sock_input =
new_sock;<BR> new_sock =
NULL;</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> if
(switch_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER) ||
switch_test_flag(rtp_session, SWITCH_RTP_FLAG_NOBLOCK))
{<BR>
switch_socket_opt_set(rtp_session->sock_input, SWITCH_SO_NONBLOCK,
TRUE);<BR>
switch_set_flag_locked(rtp_session,
SWITCH_RTP_FLAG_NOBLOCK);<BR>
}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>
switch_socket_create_pollset(&rtp_session->read_pollfd,
rtp_session->sock_input, SWITCH_POLLIN | SWITCH_POLLERR,
rtp_session->pool);</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> status =
SWITCH_STATUS_SUCCESS;<BR> *err =
"Success";<BR>
switch_set_flag_locked(rtp_session, SWITCH_RTP_FLAG_IO);</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> done:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> if (new_sock)
{<BR>
switch_socket_close(new_sock);<BR>
}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT color=#ff0000 size=2> if
(old_sock)
{<BR>
switch_socket_close(old_sock);<BR>
}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> if
(rtp_session->ready != 1)
{<BR>
WRITE_DEC(rtp_session);<BR>
READ_DEC(rtp_session);<BR>
}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> return
status;<BR></FONT></DIV>
<DIV><FONT size=2>-----------------------------------</FONT></DIV>
<DIV><FONT size=2></FONT> </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> </DIV></FONT>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>----- Original Message ----- </FONT>
<DIV><FONT size=2>From: "Madovsky" <</FONT><A
href="mailto:infos@madovsky.org"><FONT
size=2>infos@madovsky.org</FONT></A><FONT size=2>></FONT></DIV>
<DIV><FONT size=2>To: <</FONT><A
href="mailto:freeswitch-users@lists.freeswitch.org"><FONT
size=2>freeswitch-users@lists.freeswitch.org</FONT></A><FONT
size=2>></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>>I deactivated iptables, no
router, no nat,<BR>> only 2 public IP, 2 softphones connected on the same
FS which is on a public<BR>> IP to.<BR>> default config, result ->
rtp timeout<BR>> crazy that's not working since I can make 2 softphones
behind a firewall<BR>> work....<BR>> <BR>> ok that's enough for me
tonight ! ;)<BR>> <BR>> ----- Original Message ----- <BR>> From:
"Madovsky" <</FONT><A href="mailto:infos@madovsky.org"><FONT
size=2>infos@madovsky.org</FONT></A><FONT size=2>><BR>> To:
<</FONT><A href="mailto:freeswitch-users@lists.freeswitch.org"><FONT
size=2>freeswitch-users@lists.freeswitch.org</FONT></A><FONT
size=2>><BR>> Sent: Monday, March 22, 2010 1:55 AM<BR>> Subject: Re:
[Freeswitch-users] rtp timeout yet<BR>> <BR>> <BR>>>I replace
public ip by these fake one...<BR>>><BR>>> ----- Original Message
----- <BR>>> From: "Jason White" <</FONT><A
href="mailto:jason@jasonjgw.net"><FONT
size=2>jason@jasonjgw.net</FONT></A><FONT size=2>><BR>>> To:
<</FONT><A href="mailto:freeswitch-users@lists.freeswitch.org"><FONT
size=2>freeswitch-users@lists.freeswitch.org</FONT></A><FONT
size=2>><BR>>> Sent: Monday, March 22, 2010 1:49 AM<BR>>>
Subject: Re: [Freeswitch-users] rtp timeout
yet<BR>>><BR>>><BR>>>> Madovsky <</FONT><A
href="mailto:infos@madovsky.org"><FONT
size=2>infos@madovsky.org</FONT></A><FONT size=2>>
wrote:<BR>>>>> result with tcpdump -ennqti br0 -T rtp -vvv dst
port 5060<BR>>>>><BR>>>>> 10.10.10.132 = softphone1
registered from public IP<BR>>>>><BR>>>>> 11.11.11.=
softphone2 registered from public IP<BR>>>>><BR>>>>>
10.10.10.138 = FS<BR>>>><BR>>>> Those are private addresses;
there's a NAT device involved somewhere, and<BR>>>> that's likely to
be where your problems are.<BR>>>><BR>>>><BR>>>>
_______________________________________________<BR>>>>
FreeSWITCH-users mailing list<BR>>>> </FONT><A
href="mailto:FreeSWITCH-users@lists.freeswitch.org"><FONT
size=2>FreeSWITCH-users@lists.freeswitch.org</FONT></A><BR><FONT
size=2>>>> </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>>>>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>>>>
</FONT><A href="http://www.freeswitch.org"><FONT
size=2>http://www.freeswitch.org</FONT></A><FONT size=2> <BR>> <BR>>
<BR>> _______________________________________________<BR>>
FreeSWITCH-users mailing list<BR>> </FONT><A
href="mailto:FreeSWITCH-users@lists.freeswitch.org"><FONT
size=2>FreeSWITCH-users@lists.freeswitch.org</FONT></A><BR><FONT size=2>>
</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>>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>>
</FONT><A href="http://www.freeswitch.org"><FONT
size=2>http://www.freeswitch.org</FONT></A> </BLOCKQUOTE></BODY></HTML>