<div dir="ltr">Thanks Alexey, I will give it another shot first thing this morning.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 25, 2018 at 1:05 AM, Alexey Kazantsev via Users <span dir="ltr"><<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">... and yes, route[RELAY] is like this:<br>
<br>
<br>
route[RELAY] {<br>
    if ( !t_relay() ) {<br>
        send_reply("500","Internal Error");<br>
    }<br>
    exit;<br>
}<br>
<br>
<br>
or you may simply do:<br>
<span class=""><br>
        # REGISTER processing<br>
        if ( is_method("REGISTER") ) {<br>
                mid_registrar_save("location")<wbr>;<br>
                switch ($retcode) {<br>
                        case 1:<br>
                                $ru = "sip:<a href="http://10.223.15.21:5070" rel="noreferrer" target="_blank">10.223.15.21:5070</a>";<br>
</span>                                t_relay();<br>
                                break;<br>
                        case 2:<br>
<span class="">                                break;<br>
                        default:<br>
                                xlog("L_ERROR", "failed to save registration! ($$ci=$ci)\n");<br>
                }<br>
                exit;<br>
        }<br>
<br>
<br>
</span>Here's the tutorial <a href="http://www.opensips.org/Documentation/Tutorials-MidRegistrar" rel="noreferrer" target="_blank">http://www.opensips.org/<wbr>Documentation/Tutorials-<wbr>MidRegistrar</a><br>
But keep in mind that it is for OpenSIPS 2.3, as 2.4 does not have 'insertion_mode'<br>
option described there.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
------------------------------<wbr>-----------------<br>
BR, Alexey<br>
<a href="http://alexeyka.zantsev.com/" rel="noreferrer" target="_blank">http://alexeyka.zantsev.com/</a><br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>