<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>then you need to debug on 5 to see why it is replaced and read
      the documentation of the registrar module carefully. <br>
    </p>
    <div class="moz-cite-prefix">On 17/11/2022 12:09, nutxase via Users
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:wKAzW7ARXjKTWLsUcnNpFlJfA9yMcXuBCorHPuTYvuawoehM6D6BKr3EqVbIjFuYR8uAatzs0s3OHodPfHpr9hFH_5hrhDyg5Zc8FMJEn6g=@proton.me">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="font-family: Arial; font-size: 14px;">Yes so thats my
        idea but the problem i see is that asterisk sees the contact as
        the opensips details not the UAC device</div>
      <div style="font-family: Arial; font-size: 14px;"><br>
      </div>
      <div style="font-family: Arial; font-size: 14px;"><br>
      </div>
      <div class="protonmail_signature_block" style="font-family: Arial;
        font-size: 14px;">
        <div class="protonmail_signature_block-user
          protonmail_signature_block-empty"> </div>
        <div class="protonmail_signature_block-proton"> Sent with <a
            target="_blank" href="https://proton.me/" rel="noopener
            noreferrer" moz-do-not-send="true">Proton Mail</a> secure
          email. </div>
      </div>
      <div style="font-family: Arial; font-size: 14px;"><br>
      </div>
      <div class="protonmail_quote"> ------- Original Message -------<br>
        On Thursday, November 17th, 2022 at 11:04 AM, johan
        <a class="moz-txt-link-rfc2396E" href="mailto:johan@democon.be"><johan@democon.be></a> wrote:<br>
        <br>
        <blockquote class="protonmail_quote" type="cite">
          <p>If you don't want to handle the r3egister locally, why
            don't you just forward it then ? (i.e. the path approach)<br>
          </p>
          <div class="moz-cite-prefix">On 17/11/2022 11:45, Liviu Chircu
            wrote:<br>
          </div>
          <blockquote type="cite">
            <div class="moz-cite-prefix">On 17.11.2022 12:37, nutxase
              wrote:<br>
            </div>
            <blockquote type="cite">Just to confirm can registrar also
              forward the registration similar to how mid_registrar
              does?</blockquote>
            <p><font face="monospace">Approach 1: the <a
                  href="https://opensips.org/docs/modules/3.4.x/registrar.html#func_save"
                  rel="noreferrer nofollow noopener" target="_blank"
                  moz-do-not-send="true">save()</a> function has an "r"
                flag (do not auto-send a reply upstream) which may be
                useful here, allowing you to t_relay() your REGISTER
                further downstream. A caveat here is that you're saving
                the Contact before the Asterisk, which may fail (e.g.
                500 Internal Server Error). So what do you do then? You
                must delete it somehow...<br>
              </font></p>
            <p><font face="monospace">Approach 2: if I remember
                correctly, the <a
                  href="https://opensips.org/docs/modules/3.4.x/registrar.html#func_save"
                  rel="noreferrer nofollow noopener" target="_blank"
                  moz-do-not-send="true">save()</a> function was also
                designed to work on a 200 OK reply! But I haven't tested
                this scenario in a long time, so I'm not sure how well
                or if it works at all nowadays.<br>
              </font></p>
            <p><font face="monospace">Best,<br>
              </font></p>
            <pre cols="72" class="moz-signature">--
Liviu Chircu
<a href="http://www.twitter.com/liviuchircu" class="moz-txt-link-abbreviated" rel="noreferrer nofollow noopener" target="_blank" moz-do-not-send="true">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" class="moz-txt-link-abbreviated" rel="noreferrer nofollow noopener" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a>
OpenSIPS eBootcamp 5-16 Dec | <a href="http://www.opensips.org/training" class="moz-txt-link-abbreviated" rel="noreferrer nofollow noopener" target="_blank" moz-do-not-send="true">www.opensips.org/training</a></pre>
            <br>
            <fieldset class="moz-mime-attachment-header"></fieldset>
            <pre class="moz-quote-pre">_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" class="moz-txt-link-abbreviated moz-txt-link-freetext" rel="noreferrer nofollow noopener" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
          </blockquote>
        </blockquote>
        <br>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>