<div><br></div>I am using a router called IPTIME n-604. It's a famous Korean product. <div>I have no firewall whatsoever but that 'NAT randomize' option is something I've never considered.</div><div>I don't even know if my router has such functionality, but I will definitely check on it.<br>
And I believe that my router doesn't have built-in ALG functionality. </div><div><br></div><div>I'll narrow down the range of network for localnet and check the 'NAT randomize' option. </div><div>Thanks for the info.</div>
<div><br></div><div>Ed</div><div><br></div><div><div class="gmail_quote">2011/3/19 Ryan Wagoner <span dir="ltr"><<a href="mailto:rswagoner@gmail.com">rswagoner@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Sat, Mar 19, 2011 at 2:10 AM, edward choi <<a href="mailto:mp2893@gmail.com">mp2893@gmail.com</a>> wrote:<br>
> My Asterisk server is behind a NAT and I have set:<br>
> ----------------------------------------------------------------------------<br>
> externhost="my.server.address"<br>
> externrefresh=180<br>
> localnet=<a href="http://192.168.0.0/255.255.0.0" target="_blank">192.168.0.0/255.255.0.0</a><br>
> localnet=<a href="http://10.0.0.0/255.0.0.0" target="_blank">10.0.0.0/255.0.0.0</a><br>
> localnet=<a href="http://172.16.0.0/12" target="_blank">172.16.0.0/12</a><br>
> nat=yes<br>
> ---------------------------------------------------------------------------<br>
> in [general] section of sip.conf.<br>
> I can make perfect conversation with my friend with the only exception of<br>
> both parties being on private ip address.<br>
> There can be four situations when a call is established.<br>
> 1. A and B are not behind NATs<br>
> 2. A is behind a NAT, but B is not.<br>
> 3. A is not behind a NAT, but B is.<br>
> 4. A and B are both behind NATs (different NAT of course).<br>
> Among the four situations, 1, 2 and 3 works fine. (I guess externhost and<br>
> localnet did the trick)<br>
> But situation 4 does not work.<br>
> In situation 4:<br>
> When I call my friend, I get only one antenna bar with an exclamation mark.<br>
> (I am not talking about the iPhone's wifi bar, nor carrier's bar. I am<br>
> talking about Softphone's bar). But my friend has no problem with the<br>
> antenna bar. And both of us cannot hear anything.<br>
> When he calls me, now he gets one antenna bar and an exclamation mark, but<br>
> my antenna bar is just fine. And we still don't hear anything.<br>
> One time, there was only one time we could hear each other. He called me and<br>
> for the first 3~4 seconds, we could hear nothing. But after that we could<br>
> hear each other. I don't know how it worked. It was just one random success.<br>
> This is really weird. I tried Viber in the same situation and Viber works<br>
> just fine every time.<br>
> Could anyone give me any plausible explanation for this phenomenon?<br>
> Ed<br>
<br>
</div></div>It shouldn't matter but I would only define my actual network range<br>
for localnet. What NAT/Firewall are you using in front of the Asterisk<br>
box? I have had to turn off the NAT randomize port option or turn on<br>
the NAT static port option. I have also sometimes had to disable the<br>
SIP ALG.<br>
<br>
Ryan<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>