<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EstiloCorreo18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Good morning.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I&#8217;ve been testing this again (Mediaproxy)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Playing with IPTABLES has not been a good idea because a rule to deny traffic doesn&#8217;t fire &nbsp;&#8220;/proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout_stream&#8221; rule so I was mistaken Saul (<a href="http://lists.opensips.org/pipermail/users/2012-May/021657.html">http://lists.opensips.org/pipermail/users/2012-May/021657.html</a>)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I&#8217;ve been realized about this with cat /proc/net/nf_conntrack |grep udp|grep 500 (if this helps someone)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Mediaproxy only realizes about this rule when the 4 UDP streams (2 for each leg) are timed out.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>We think that once 1 of the 4 streams has no traffic for 180 seconds mediaproxy should fire the &#8220;</span><span lang=EN-US style='color:#1F497D'>dlg_terminate_dlg</span><span lang=EN-US style='color:#1F497D'>&#8221; call. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Could this be achieved in future versions? Is there any reason to do like actually?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Finally, for CentOS machines with netfilter support if you want to tune ip_conntrack_udp_timeout_stream variable we have to do on </span><span lang=EN-US style='color:#1F497D'>/proc/sys/net/netfilter/nf_conntrack_udp_timeout_stream.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks and regards.</span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D'>-- <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Eduardo Lejarreta.<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org] <b>En nombre de </b>Eduardo Lejarreta<br><b>Enviado el:</b> viernes, 09 de noviembre de 2012 14:00<br><b>Para:</b> users@lists.opensips.org<br><b>Asunto:</b> [OpenSIPS-Users] 180 seconds RTP timeout<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Good morning<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>In reference to <a href="http://lists.opensips.org/pipermail/users/2012-May/021623.html">http://lists.opensips.org/pipermail/users/2012-May/021623.html</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Kernel + Iptables + netfilter + conntrack &#8230; versions up to date and supported. Over CentOS.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>We&#8217;ve tried this scenario, no RTP flow between both legs. &nbsp;-&gt; Once the call is established.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>iptables -A FORWARD -s &lt;gw-ip&gt;/32 -p udp -j REJECT --reject-with icmp-host-prohibited<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>iptables -A FORWARD -d &lt;gw-ip&gt;/32 -p udp -j REJECT --reject-with icmp-host-prohibited<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>iptables -A FORWARD -s &lt;UA-ip&gt;/32 -p udp -j REJECT --reject-with icmp-host-prohibited<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>iptables -A FORWARD -d &lt;UA-ip&gt;/32 -p udp -j REJECT --reject-with icmp-host-prohibited<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>(Yes I know that this closes SIP dialog also but for investigating purposes is enough. Ngrep and tail over the log running in paralell)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Other timers like on_hold_timeout and stream_timeout are working fine.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>We suspect that the problem is in mediacontrol.py and maybe other libraries where the path for the 180 second is:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>/proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout_stream<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>When the real var. is:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>/proc/sys/net/netfilter/nf_conntrack_udp_timeout_stream<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I&#8217;ve tried to rebuild mediacontrol.py with the correct path but it&#8217;s still failing. Any idea?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>-- <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Eduardo Lejarreta<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p></div></body></html>