<div>Hi rcswebb,</div><div><br></div><div><br></div><div>I had a problem like yours :</div><div>Asterisk -NAT - internet - NAT - 3CX phone</div><div><br></div><div>Without modifiyng Astrisk conf I could start a call from the client but without hearing a sound.</div>
<div><br></div><div>The solution for me was to force Asterisk to modify the outgoing udp packet to insert it's public ip and not the private IP behind the NAT .</div><div><br></div><div>So in your sip.conf I modified :</div>
<div><br></div><div>[general]</div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px; background-color: rgb(227, 230, 235); "><i>externip=YouEternalIP</i></span></div>
<div><span class="Apple-style-span" style="font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px; background-color: rgb(227, 230, 235); ">NAT=Yes</span></div><div><br></div><div><br></div><div>Hope that'll help :-)</div>
<div><br></div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Message: 11<br>Date: Wed, 21 Sep 2011 10:52:08 +0100<br>From: Richard Webb <<a href="mailto:rcswebb@gmail.com" style="color: rgb(6, 88, 181); ">rcswebb@gmail.com</a>><br>
Subject: [asterisk-users] RTP stream when * and Xlite are both behind<br> Nat devices.<br>To: <a href="mailto:asterisk-users@lists.digium.com" style="color: rgb(6, 88, 181); ">asterisk-users@lists.digium.com</a><br>
Message-ID:<br> <<a href="mailto:CAM39q6oL6yTW4SkHq0vmRoUXx_4MkR7P6Zo4shbdh8HVqOd6%2BQ@mail.gmail.com" style="color: rgb(6, 88, 181); ">CAM39q6oL6yTW4SkHq0vmRoUXx_4MkR7P6Zo4shbdh8HVqOd6+Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi,<br><br>I have an Asterisk box behind a NAT address and also a Xlite 4 soft phone<br>behind a different NAT network.<br><br>Asterisk -> Nat -> Internet -> Nat -> Softphone.<br>
<br>I can register my softphone to the asterisk box ok via SIP but the RTP<br>stream from the asterisk box is addressed to the private non-routeable<br>address of the softphone when I turn on rtp debuging.<br><br>How can I configure the rtp stream to be sent to the public facing address<br>
of the softphone?<br><br>Cheers,</span>