<div dir="ltr">So I've found out that NAT has nothing to do with it.  The bit about things working when the NAT device is removed was wrong.<div><br></div><div>So my question becomes:  Why would Kamailio ignore a 401 rather sending it to a failure route?</div>
<div><br></div><div>Thanks in advance,</div><div>Marc</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 3, 2014 at 9:10 AM, Marc Soda <span dir="ltr"><<a href="mailto:msoda@coredial.com" target="_blank">msoda@coredial.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I forget to mention, the nat device is in front of the Kamailio servers, not the endpoints.</div><div class="gmail_extra">
<div><div class="h5"><br><br><div class="gmail_quote">On Fri, Feb 28, 2014 at 6:22 PM, Marc Soda <span dir="ltr"><<a href="mailto:msoda@coredial.com" target="_blank">msoda@coredial.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have a Kamailio server setup which is registers to a back end server on behalf of endpoints.  The endpoints can register to Kamailio but Kamailio is failing to register to the server when I put a NAT device in front of it.  Without the NAT device it works fine.<div>


<br></div><div>The problem is the 401 that comes back seems to be ignored by Kamailio.  I have a failure route setup to auth, but it is never hit.  I see the 401 in onrely_route, but not the failure_route.  I'm assuming it's a NAT issue because removing the device fixes the issue.</div>


<div><br></div><div>Anyone have any ideas?<br clear="all"><div><br></div><div>The 401 being ignored:</div><div><br></div><div><div>SIP/2.0 401 Unauthorized<br></div><div>Via: SIP/2.0/UDP 10.0.10.11;branch=z9hG4bKe5d6.178378f7.0;received=198.XXX.XXX.XXX</div>


<div>Via: SIP/2.0/UDP 127.0.0.1:12354;rport=6545;received=198.XXX.YYY.YYY;branch=z9hG4bK-1879-1-3</div><div>From: <sip:sip7878_spqa@64.YYY.YYY.YYY>;tag=1</div><div>To: <sip:sip7878_spqa@64.YYY.YYY.YYY>;tag=as00e32130</div>


<div>Call-ID: <a href="mailto:1-1879@127.0.0.1" target="_blank">1-1879@127.0.0.1</a></div><div>CSeq: 2 REGISTER</div><div>User-Agent: CoreDialPBX</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO</div>

<div>
Supported: replaces</div><div>WWW-Authenticate: Digest algorithm=MD5, realm="<a href="http://fe-c7c5-9o.domain.com" target="_blank">fe-c7c5-9o.domain.com</a>", nonce="151e4f60"</div><div>Content-Length: 0</div>

</div><div>
<br></div><div>Thanks,</div><div>Marc</div></div></div></blockquote></div></div></div></div></blockquote></div>
</div></div>