<div dir="ltr">Alexey I basically started over from scratch using your script as a guide and everything is working fine so far, I wish I could tell what I initially did wrong, but I had a LOT of strange things in there, being a dev box and all. Thanks a LOT for the help<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 25, 2018 at 8:13 AM, Dominic <span dir="ltr"><<a href="mailto:wallnut.monkeys@gmail.com" target="_blank">wallnut.monkeys@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Alexey, I will give it another shot first thing this morning.<br></div><div class="HOEnZb"><div class="h5"><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><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>                                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/Docume<wbr>ntation/Tutorials-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="m_776219418021128518HOEnZb"><div class="m_776219418021128518h5"><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" target="_blank">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>
</div></div></blockquote></div><br></div>