<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<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"
cite="mid:101f57f0-b752-3800-983a-568155aeeea5@opensips.org">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">On 17.11.2022 12:37, nutxase wrote:<br>
</div>
<blockquote type="cite"
cite="mid:9ruujfGTRSJocyj74VAjy2x-vth34jHCltCPZA6U-mrExVOhNqn_bEWJFtIxhN0BSctiC_VgkY1vdayVTU_Y2w_RYVUThNqWO5T_iQbHYQ4=@proton.me">Just
to confirm can registrar also forward the registration similar
to how mid_registrar does?</blockquote>
<p><font face="monospace">Approach 1: the <a
moz-do-not-send="true"
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 moz-do-not-send="true"
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 class="moz-signature" cols="72">--
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu" moz-do-not-send="true">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" moz-do-not-send="true">www.opensips-solutions.com</a>
OpenSIPS eBootcamp 5-16 Dec | <a class="moz-txt-link-abbreviated" href="http://www.opensips.org/training" moz-do-not-send="true">www.opensips.org/training</a></pre>
<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>