<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;}
/* 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.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=FR-CH link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>Small problem with rtpproxy and nathelper<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>as you can see in the log bellow , I use the force_rtp_proxy method with the 'r' flag to indicate to trust the IP of the SDP.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>In the example bellow, the trusted IP is "95.128.80.6 3966" , the problem is that the old rtp source (in this case a MoH server) continue to send 1 or 2 packet so the RTP proxy change them with "95.128.80.92:1086" so packet are not correctly forwarded.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>If the IP must be trusted why he take care of a received Packet ? <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I use the rtpproxy 1.2.1.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Regards<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Laurent<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 kamailio-1.5.4-notls/kamailio[31518]: route 5 | INVITE has SDP | we trust the IP in SDP<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 kamailio-1.5.4-notls/kamailio[31518]: route 5 | force_rtp_proxy ocrf<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 rtpproxy[8101]: DBUG:handle_command: received command "31518_84 Uc0,101 408970232 95.128.80.6 3966 16e48326;1 2107358281;1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 rtpproxy[8101]: INFO:handle_command: adding strong flag to existing session, new=1/0/0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 rtpproxy[8101]: INFO:handle_command: lookup on ports 3162/3820, session timer restarted<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 rtpproxy[8101]: INFO:handle_command: update<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 rtpproxy[8101]: INFO:handle_command: Unless the address provided by client historically<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 rtpproxy[8101]: INFO:handle_command: pre-filling callee's address with 95.128.80.6:3966<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 rtpproxy[8101]: DBUG:doreply: sending reply "31518_84 3820 95.128.80.6 "<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 rtpproxy[8101]: INFO:rxmit_packets: callee's address filled in: 95.128.80.92:1086 (RTP)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 2 16:58:42 dns2 rtpproxy[8101]: INFO:rxmit_packets: guessing RTCP port for callee to be 1087<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>