<div style="font-family: Arial; font-size: 14px;">hmm i do already have that</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><span> $ru = "sip:1.2.3.4:5060";</span><div><span>            xlog("looking up $ct!\n");</span></div><div><span>            t_relay();</span></div><span></span><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">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 2:33 PM, Jehanzaib Younis <jehanzaib.kiani@gmail.com> wrote:<br><br>
        <blockquote class="protonmail_quote" type="cite">
            <div dir="ltr">Hi there,<div>Just t_relay(); to the Asterisk IP,  it should work perfectly fine.</div><div><br></div><div><br clear="all"><div><div data-smartmail="gmail_signature" class="gmail_signature" dir="ltr"><div>Regards,</div>
<div>Jehanzaib</div></div></div><br></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Fri, Nov 18, 2022 at 12:09 AM nutxase via Users <<a href="mailto:users@lists.opensips.org" rel="noreferrer nofollow noopener" target="_blank">users@lists.opensips.org</a>> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><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 style="font-family:Arial;font-size:14px">
    <div>

            </div>

            <div>
        Sent with <a target="_blank" rel="noreferrer nofollow noopener" href="https://proton.me/">Proton Mail</a> secure email.
    </div>
</div>
<div style="font-family:Arial;font-size:14px"><br></div><div>
        ------- Original Message -------<br>
        On Thursday, November 17th, 2022 at 11:04 AM, johan <<a target="_blank" href="mailto:johan@democon.be" rel="noreferrer nofollow noopener">johan@democon.be</a>> wrote:<br><br>
        <blockquote 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>On 17/11/2022 11:45, Liviu Chircu
      wrote:<br>
    </div>
    <blockquote type="cite">

      <div>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 target="_blank" rel="noreferrer nofollow noopener" href="https://opensips.org/docs/modules/3.4.x/registrar.html#func_save">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 target="_blank" rel="noreferrer nofollow noopener" href="https://opensips.org/docs/modules/3.4.x/registrar.html#func_save">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">--
Liviu Chircu
<a target="_blank" rel="noreferrer nofollow noopener" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a target="_blank" rel="noreferrer nofollow noopener" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a>
OpenSIPS eBootcamp 5-16 Dec | <a target="_blank" rel="noreferrer nofollow noopener" href="http://www.opensips.org/training">www.opensips.org/training</a></pre>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Users mailing list
<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a target="_blank" rel="noreferrer nofollow noopener" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>



        </blockquote><br>
    </div>_______________________________________________<br>
Users mailing list<br>
<a target="_blank" href="mailto:Users@lists.opensips.org" rel="noreferrer nofollow noopener">Users@lists.opensips.org</a><br>
<a target="_blank" rel="noreferrer nofollow noopener" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>

        </blockquote><br>
    </div>