<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>kamailio stores the Path in location table and uses it properly,
      I have a lot of deployments making use of it.</p>
    <p>If you have an intermediate proxy before uses and kamailio that
      adds Path, then kamailio sends to that proxy. If you do not have
      an intermediate proxy between users and Kamailio, then normally
      there is Path, kamailio being the first hop.<br>
    </p>
    <p>If you actually send the register to asterisk after Kamailio is
      adding the Pathn and you expect asterisk to handle Path, iirc,
      recently it was a discussion that Asterisk has a broken Path
      implementation.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 14.06.21 06:37, Thành Trần Duy
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADpY4vQUp=m5xeP-ffJYLkFHV3c42+uoYdm7zqdHvdLajYOKNg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div>Yes, I will try. But can you have another idea?</div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Vào CN, 13 thg 6, 2021 vào
          lúc 21:37 Sergiu Pojoga <<a
            href="mailto:pojogas@gmail.com" moz-do-not-send="true">pojogas@gmail.com</a>>
          đã viết:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Why don't you ask these questions directly with
            the folks at dSipRouter? Some are even members of this
            mailing list. They seem to have their own free forum as well
            as paid support, which you may consider.<br>
            <div><br>
            </div>
            <div>Cheers,</div>
            <div>--Sergiu</div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Sat, Jun 12, 2021 at
              11:52 PM Thành Trần Duy <<a
                href="mailto:thanh.dtran88@gmail.com" target="_blank"
                moz-do-not-send="true">thanh.dtran88@gmail.com</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">Hi all,
                <div><br>
                </div>
                <div>First of all, I would like to present the system
                  model we are applying:<br>
                </div>
                <div>- dSIPRouter : Sip relay for all users
                  connected from the internet (installed with RTPEngine
                  to handle media data).</div>
                <div>- kamailio 5.3.5: core system, registration server.</div>
                <div>- Asterisk 17: SBC.</div>
                <div>Sorry if our model seems a bit backwards but we
                  have so many users (>12k configured users, > 3k
                  concurrent registered users, > 500 concurrent users
                  at cps 10), I don't know of any solution that can work
                  with such a large load.<br>
                </div>
                <div><br>
                </div>
                <div>With call outbound (from user to PSTN via SBC),
                  everything is fine.</div>
                <div>But with internal or inbound calls, it wasn't
                  successful.</div>
                <div>I showed that:</div>
                <div>- After dSIPRouter, the register message has Path
                  parameter in SIP Header, </div>
                <div>- Kamailio store <a class="moz-txt-link-freetext" href="sip:user@domain">sip:user@domain</a> in column contact
                  at location table.</div>
                <div>- Using modparam registrar with use_path=1,
                  path_mode=0, path_use_received=1, I stored this
                  parameter in DB.</div>
                <div>- When calling internal or inbound, for the search
                  destination of a phone, I am using sip_trace()
                  function. But the result is always column contact. </div>
                <div>- With this uri, kamailio wasn't known and sent the
                  invite to proxy.</div>
                <div>- Final error message: 404.</div>
                <div><br>
                </div>
                <div>I need one of these solutions:</div>
                <div>- get path column when result of sip_trace() like 
                  <a class="moz-txt-link-freetext" href="sip:user@domain">sip:user@domain</a> (with phone in internal network, it
                  like <a class="moz-txt-link-freetext" href="sip:user@ipaddress">sip:user@ipaddress</a>).</div>
                <div>- write path value to column contact when the
                  register message has it.</div>
                <div>- sip_trace can get a path instead of contact if it
                  has. </div>
                <div><br>
                </div>
                <div>Or you can have other solutions, pls help me.</div>
                <div>We can talk and test via my Webex PMR.</div>
                <div><br>
                </div>
                <div>Many thanks,</div>
                <div>Thanh Duy Tran</div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
              __________________________________________________________<br>
              Kamailio - Users Mailing List - Non Commercial Discussions<br>
                * <a href="mailto:sr-users@lists.kamailio.org"
                target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
              Important: keep the mailing list in the recipients, do not
              reply only to the sender!<br>
              Edit mailing list options or unsubscribe:<br>
                * <a
                href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            </blockquote>
          </div>
          __________________________________________________________<br>
          Kamailio - Users Mailing List - Non Commercial Discussions<br>
            * <a href="mailto:sr-users@lists.kamailio.org"
            target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
          Important: keep the mailing list in the recipients, do not
          reply only to the sender!<br>
          Edit mailing list options or unsubscribe:<br>
            * <a
            href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>