<div dir="ltr">Hello,<div class="gmail_quote"><div dir="ltr"><div><br></div><div>I tried to set up the mid_registrar module.</div><div><br></div><div>--<br></div><div>loadmodule "usrloc.so"<br>modparam("usrloc", "nat_bflag", "NAT")<br>modparam("usrloc", "working_mode_preset", "single-instance-no-db")</div><div>loadmodule "mid_registrar.so"<br>modparam("mid_registrar", "mode", 1) <br>modparam("mid_registrar", "outgoing_expires", 7200)<br>modparam("mid_registrar", "default_expires", 1800)</div><div>...<br></div><div>if (is_method("REGISTER")) {<br>                mid_registrar_save("location");<br>                xdbg("mid_registrar_save location 112211  $retcode \n");<br>                switch ($retcode) {<br>                case 1:<br>                        add_path_received();<br>                        xlog("forwarding REGISTER to main registrar ($$ci=$ci)\n");<br>                        $ru = "sip:<a href="http://172.19.19.120:5060" target="_blank">172.19.19.120:5060</a>";<br>                        route(relay);<br>                        break;<br>                case 2:<br>                        xlog("absorbing REGISTER! ($$ci=$ci)\n");<br>                        break;<br>                default:<br>                        xlog("failed to save registration! ($$ci=$ci)\n");<br>                }<br>                exit;<br><br>        }</div><div>--</div><div><br></div><div>1. I use outgoing_expires 7200. UA makes Register with Expires: 60 every 60sec. Opensips forwards all Register requests.  And sometimes inserts  Expires: 60 in forwarded Register request.<br></div><div><br></div><div><div>2. To my mind opensips was set up to store contact fields in memory. How can I list successful registered UAs from memory? Or I have to store contacts to DB?<br></div><div><br></div><div>Maybe I did something wrong.<br></div><div><br></div><div>-- <br><div dir="ltr" data-smartmail="gmail_signature">Regards,</div><div data-smartmail="gmail_signature">Alex<br></div></div></div></div>
</div></div>