<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I have submitted bug #2154.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I believe it is a registration problem. The "received" should never be null in the location table.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Wednesday, June 24, 2020 2:36:04 P.M. PDT Robert Dyck wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Context: opensips 3.0.2</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I wanted to cleanup a working configuration so I eliminated the NAT check if the address family was IPV6. This was in the initial request route. I was surprised to see that an IPV6 INVITE would fail. The REGISTERs were good.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Could someone explain to me what is happening.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Thanks, Rob</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Config and debug on failure</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">       if ($af == "INET") { </span><span style=" font-family:'monospace';"><br />       if (nat_uac_test(2)) { <br />               xlog("nat_uac_test(2) was triggered\n"); <br />               xlog("The first Via is $(hdr(Via)[0])\n"); <br />               if (is_method("REGISTER")) { <br />                       fix_nated_register(); <br />                       setbflag(bf_NAT); <br />               } else { <br />                       xlog("Contact before fix is $ct\n"); <br />#                       fix_nated_contact(); <br />                       xlog("Contact after fix is $ct\n"); <br />#                       setflag(mf_NAT); <br />               } <br />       } <br />       } # end of if ($af == "INET")<br /><br /></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">un 24 10:09:34 [1682250] Branch index is 0  </span><span style=" font-family:'monospace';"><br />Jun 24 10:09:34 [1682250]  <br />Jun 24 10:09:34 [1682250] The IPV6 related flags are mf_INVITE_FROM_IPV6 mf_SRC_WS and bf_IPV6_CONTACT bf_CALLEE_IPV6 bf_DST_WS <br />Jun 24 10:09:34 [1682250] IPV6 to IPV6, rtpproxy not required <br />Jun 24 10:09:34 [1682250] Set up the reply route <br />Jun 24 10:09:34 [1682250] return from per_branch_ops <br />Jun 24 10:09:34 [1682250] DBG:core:mk_proxy: doing DNS lookup... <br />Jun 24 10:09:34 [1682250] DBG:core:sip_resolvehost: no port, has proto -> do SRV lookup! <br />Jun 24 10:09:34 [1682250] DBG:core:get_record: lookup(_wss._tcp.1mkfmvkg7s37.invalid, 33) failed <br />Jun 24 10:09:34 [1682250] DBG:core:sip_resolvehost: no valid SRV record found for _wss._tcp.1mkfmvkg7s37.invalid, trying A record lookup... <br />Jun 24 10:09:34 [1682250] CRITICAL:core:mk_proxy: could not resolve hostname: "1mkfmvkg7s37.invalid" <br />Jun 24 10:09:34 [1682250] ERROR:tm:uri2proxy: bad host name in URI <sip:d34p4lqm@1mkfmvkg7s37.invalid;transport=wss> <br />Jun 24 10:09:34 [1682250] ERROR:tm:t_forward_nonack: failure to add branches<br /></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace';">Debug of NAT check, working scenario</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">Jun 24 13:59:52 [1707071] Received request from WAN, Method is INVITE </span><span style=" font-family:'monospace';"><br />Jun 24 13:59:52 [1707071] nat_uac_test(2) was triggered <br />Jun 24 13:59:52 [1707071] DBG:core:parse_headers: flags=ffffffffffffffff <br />Jun 24 13:59:52 [1707071] DBG:core:_parse_to: end of header reached, state=10 <br />Jun 24 13:59:52 [1707071] DBG:core:_parse_to: display={}, ruri={sip:4@bogus.com} <br />Jun 24 13:59:52 [1707071] DBG:core:get_hdr_field: <To> [24]; uri=[sip:4@bogus.com]  <br />Jun 24 13:59:52 [1707071] DBG:core:get_hdr_field: to body [<sip:4@bogus.com> <br />] <br />Jun 24 13:59:52 [1707071] DBG:core:get_hdr_field: cseq <CSeq>: <4370> <INVITE> <br />Jun 24 13:59:52 [1707071] DBG:core:get_hdr_field: content_length=1756 <br />Jun 24 13:59:52 [1707071] DBG:core:get_hdr_field: found end of header <br />Jun 24 13:59:52 [1707071] The first Via is SIP/2.0/WSS tywoax0gzbkq.invalid;branch=z9hG4bK6942320 <br />Jun 24 13:59:52 [1707071] DBG:core:parse_headers: flags=ffffffffffffffff <br />Jun 24 13:59:52 [1707071] Contact before fix is <sip:2@bogus.com:8000;gr=urn:uuid:1f367887-04d9-4caa-884c-e51e98db625e> <br />Jun 24 13:59:52 [1707071] DBG:core:parse_headers: flags=ffffffffffffffff <br />Jun 24 13:59:52 [1707071] Contact after fix is <sip:2@bogus.com:8000;gr=urn:uuid:1f367887-04d9-4caa-884c-e51e98db625e><br /></span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /><br /></p></body></html>