<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:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@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;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
h3
        {mso-style-priority:9;
        mso-style-link:"\6A19\984C 3 \5B57\5143";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:13.5pt;
        font-family:"Times New Roman","serif";
        color:black;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML \9810\8A2D\683C\5F0F \5B57\5143";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.HTML
        {mso-style-name:"HTML \9810\8A2D\683C\5F0F \5B57\5143";
        mso-style-priority:99;
        mso-style-link:"HTML \9810\8A2D\683C\5F0F";
        font-family:"Courier New";
        color:black;}
span.3
        {mso-style-name:"\6A19\984C 3 \5B57\5143";
        mso-style-priority:9;
        mso-style-link:"\6A19\984C 3";
        font-family:"Times New Roman","serif";
        font-weight:bold;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle23
        {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:72.0pt 90.0pt 72.0pt 90.0pt;}
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 bgcolor=white lang=ZH-TW link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hello Bodgan<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'>2 UACs behind the same nat, I check my routing.<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'>UAC don’t route to nat_fixups.<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'>But UACs checked My OpenSIPS private IP (10.10.12.111), Not Public IP.<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'>I don’t know why? Do you have any suggestion??<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'>My Config <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'>route[generic_relay] {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>xlog("L_NOTICE","3 invite $si");<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> # for INVITEs enable some additional helper routes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> #---- Helper route, if nat=yes in the R-URI set flag 6 ----#<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> #---- This is used to Process REINVITES ----#<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> if (subst_uri('/((sip:.*)||(sip:.*:.*));nat=yes/\1/')){<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> setbflag(6);<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'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> #---- If caller(flag 5) or callee(flag 6) are behind NAT ---#<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> #---- Call the route(6) to force the use of the RTP Proxy ---#<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> if (isflagset(5) || isbflagset(6)) {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> route(nat_fixups);<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'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> if (!t_relay()) {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> sl_reply_error();<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'> exit;<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'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>route[nat_fixups] {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>xlog("L_NOTICE","4 NAT FIXED - $fu call $ru ");<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> #---- RTP Proxy handling ---#<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> if (is_method("BYE|CANCEL")) {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> unforce_rtp_proxy();<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> } else if (is_method("INVITE")){<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> #---- Activates the RTP Proxy for the CALLEE ---#<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> rtpproxy_offer();<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'> # catch and fix replies<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> t_on_reply("2");<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'><o:p> </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'>Nick<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </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 lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Bogdan-Andrei Iancu [mailto:bogdan@opensips.org] <br><b>Sent:</b> Friday, March 15, 2013 12:32 AM<br><b>To:</b> OpenSIPS users mailling list<br><b>Cc:</b> Nick Chang<br><b>Subject:</b> Re: [OpenSIPS-Users] two UACs behind the same nat<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><tt><span lang=EN-US style='font-size:10.0pt'>Hi Nick,</span></tt><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>Assuming routing is possible between the 2 UACs, you need to double check that the IPs in SDP are not changed by proxy and points to the actual UACs.</tt><br><br><tt>Regards,</tt><br><br></span><span lang=EN-US><o:p></o:p></span></p><pre><span lang=EN-US>Bogdan-Andrei Iancu<o:p></o:p></span></pre><pre><span lang=EN-US>OpenSIPS Founder and Developer<o:p></o:p></span></pre><pre><span lang=EN-US><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-US><br>On 03/11/2013 11:40 AM, Nick Chang wrote: <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Hello<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 have two UACs behind the same nat.<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>A call B is OK. But it’s not voice.<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>Can everyone give me a suggestion??<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>Thanks<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Nick<o:p></o:p></span></p><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US>_______________________________________________<o:p></o:p></span></pre><pre><span lang=EN-US>Users mailing list<o:p></o:p></span></pre><pre><span lang=EN-US><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></span></pre><pre><span lang=EN-US><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></span></pre></div></body></html>